% 2D discontinuous coefficients % Ndsr - number of the discontinuity subregions % Vdsr(k), k=1,...Ndsr - value of the discontinuity in the sunregions % dsr(k,1:4), k=1,...Ndsr - the coordinates of the discontinuity subregions, % given as [x1,x2,y1,y2] % function val=disco_rule(i,j,indicator,dsr,Vdsr,Ndsr,hstep) x = Xdir(i,hstep); y = Ydir(j,hstep); if indicator==1, for k=1:Ndsr if (((dsr(k,1)