functionlogspace_dx
Create log spaced vector and only return the spacing between points
Information
logspace(start,stop,n) generates a row vector of n logarithmically equally spaced points between decades start and stop and returns ONLY the spacing between values.
For n = 1, logspace returns stop.
Example:
n = 10
logspace(1,10,n)
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 | dx | Spacing between generated points |