|
Contents | Previous | Next | Subchapters |
| Syntax |
logspace(lower, upper) |
logspace(lower, upper, npoint) | |
| See Also | linspace |
10^lower.
If upper is equal to PI
,
the last point in the grid is pi.
Otherwise, the last point in the grid is 10^upper.
The arguments
lower, upper, and npoint,
are all integer, real, or double-precision scalars.
If the argument npoint is not present,
the value 50 is used in its place.
ginit
x = logspace(-1, +1)
plot(x, 1d0 / x)
gyaxis("log")
O-Matrix will draw the following plot
logspace is a row vector.
So, for example, to make the plot above using gplot
you would
enter
ginit
x = logspace(-1, +1)'
gplot(x, 1d0 / x)
gyaxis("log")
(Note the ' in this example that is not in the example above.)