I am trying to integrate a function over a region in different time intervals. The integration looks something like this.
fun_uz = @(u)1./sqrt(u).*exp(-Z.^2./(2.*u));fun_Y = @(u)(erf((Y+B)./sqrt(2.*u))-erf((Y-B)./sqrt(2.*u)));fun_Z = @(u)(erf((X+L+u)./sqrt(2.*u))-erf((X-L+u)./sqrt(2.*u)));fun = @(u)inc.*fun_uz(u).*fun_Y(u).*fun_Z(u);fint = integral(fun,0,upperl);
The variable 'upperl' is the upper limit of the integral function. I have to perform this integration over different X,Y, and Z regions and different 'upperl' values. I am getting profiles which are discontinuous for different 'upperl' values. I have shown here profiles at few different 'upperl' values.
I am not able to understand why the discontinuity are occuring, any help is greatly appreciated. Thanks.
Best Answer