Hi,

i have to valute this function

and plot the graphics for , i wrote:

u=linspace(0,4,1000);

q=integral(@(x)exp(-x.^2),0,u)-1/2;

and here i get:

'Error using integral (line 85)

A and B must be floating-point scalars.'

so i can't plot(u,q).. what can i do??

Thanks for the support and soryr for my bad english.

## Best Answer