|
Contents | Previous | Next | Subchapters |
| Syntax |
linspace(lower, upper) |
linspace(lower, upper, npoint) | |
| See Also | sequence , logspace |
100 is used in its place.
ginit
x = linspace(-pi, +pi)
plot(x, sin(x))
O-Matrix will draw the following plot
linspace is a row vector.
So, for example, to make the plot above using gplot
you would
enter
ginit
x = linspace(-pi, +pi)'
gplot(x, sin(x))
(Note the ' in this example that is not in the example above.)