Hi all Please I need help to complete this assignment.I have a function f(x)=x^2*exp(-x) and would like to print f(min) and the corresponding x tha gave that value. Please look at what I have done so far and help me identify why it't not printing
x=[0:0.07:5];y=(x).^2.*exp(-x);if y == min(y) disp('min value of y =', num2str (y)); disp('x value for min y=', mum2str(x));end
Best Answer