MATLAB Preliminaries
linspace is very useful for plotting and generating vectors for X and Y. For example:
x = linspace(-1,1,21);
y = x.^3;
plot(x,y);
Produces a graph of X3 versus X using 21 points X = -1. -0.9 ... 0.9 1.
Previous slide
Next slide
Back to first slide
View graphic version