MATLAB: Can someone please tell why I have an error

calculs

ja.JPG

Best Answer

Instead of line (this is what sir Walter mentioned in the above) :
ya=f(x) %change your lines to these lines
yb=f(x)