logspace
Create a row vector with logarithmically spaced elements.
Syntax
R = logspace(a,b)
R = logspace(a,b,n)
Inputs
- a,b
- Specify the interval [10^a, 10^b].
- n
- The number of elements to produce (default: 50).
Outputs
- R
- The vector result.
Example
logspace(2,9,8)
ans = [Matrix] 1 x 8
100 1000 10000 100000 1000000 10000000 100000000 1000000000