Try this:
x = @(s) exp(-s)/sqrt(s);
upper_limit = linspace(1, 4);
xval = arrayfun(@(uplim) integral(x, 0, uplim, 'ArrayValued',true), upper_limit);
figure(1)
plot(upper_limit, xval)
grid
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!