function y=my_first_function(x) %my_first_function.m %Example of an m file that creates output y based on user given input x. % Also try: fnct=@(x) x.*sin(3*x.ˆ2).*exp(-x.ˆ2/4); y=x.*sin(3*x.^2).*exp(-x.^2/4); plot(x,y)