MATLAB: This function is wrong written

function wrong written

My function is: funk1=3*((1-x).^2)*exp(-x.^2-(y+1).^2) and matlab send me and error but don't write where it is.

Best Answer

F = 3*((1-x).^2).*exp(-x.^2-(y+1).^2);
^ you need this .
Read about the difference here:
Related Question