% This function assumes that x and y are vectors. % The symbol .* denotes element by element multiplication % The symbol .^ denotes element by element exponentiation function y = fcn2(x) y = x.*exp(-x);