Back to Core Functions
logspace
Generate logarithmically spaced vector
Syntax
v = logspace(a, b) v = logspace(a, b, n)
Description
Returns a row vector of `n` logarithmically spaced points between 10^a and 10^b. Default is 50 points.
Parameters
| Name | Description |
|---|---|
| a | Exponent of start value (10^a) |
| b | Exponent of end value (10^b) |
| n(optional) | Number of points (default: 50) |
Returns
1×n NDArray