You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

6 lines
143 B

function f = HeavisideGradient2(resolution,nGrid,a,b,c)
h=1.0/(resolution*nGrid);
X = h/2:h:1-h/2;
[x,y,z]=meshgrid(X);
f=fun(x,y,z,a,b,c);
end