%funtion f;
clear;
N=10;
for j=0:N;
fun=inline('(1./(2.*sqrt(pi.*(s-0.1.*j)))).*exp(-1./(4.*(s-0.1.*j))).*(exp(0.9983.*s-1)-0.5.*exp(s-1).*(1+erf(-sqrt(s)+1./(2.*sqrt(s)))))','s');
B(j+1)=quad(fun,0.1*j,1);
end
Warning: Divide by zero.
> In inlineeval at 13
In inline.subsref at 25
In quad at 62
Warning: Minimum step size reached; singularity possible.
> In quad at 88