Monday, June 25, 2012

Monday MATLAB exercise

Make a plot of a function of a single variable using fplot by executing fplot(‘exp(-0.1*x).*sin(x)’,[0,20]). Note the use of an array operator in this command. Add labels and title using xlabel(‘x’), ylabel(‘f(x) = e^[x/10]sin(x)’), title(‘A function plotted with fplot’).

No comments:

Post a Comment