Script m-Files

As an example, let us consider the drawing of the function

x = 0:0.1:2; y = abs(x.*sin(2*pi*x)); plot(x,y) title('f(x)= |x sin(2 pi x)| on the interval [0,2]') xlabel('x') ylabel('f(x)') axis([0 2 0 2]) shgSave the file through the menu `File

`picture`

in MATLAB, then the graph of
It is better to save the commands that generate a figure than to save the figure itself.

Esteur 2010-03-22