functionlogspace
Create log spaced vector
Information
logspace(start,stop,n) generates a row vector of n logarithmically equally spaced points between decades start and stop and the spacing between values.
For n = 1, logspace returns stop.
Example:
n = 10
logspace(1,10,n)
x[n] = {1,1.29,1.67,2.15,2.78,3.59,4.64,5.99,7.74,10}
dx[n-1] = {0.29,0.38,0.49,0.63,0.81,1.05,1.35,1.75,2.26}
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | start | Start value | |
| Real | stop | Stop value | |
| Integer | n | Number of generated points |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x | Logarithmically spaced vector | |
| Real | dx | Spacing between generated points |