k-Wave Toolbox |
Create vector of log or linear spaced points
points = getSpacedPoints(X1, X2) points = getSpacedPoints(X1, X2, N) points = getSpacedPoints(X1, X2, N, spacing)
getSpacedPoints
generates a row vector of either logarithmically or linearly spaced points between X1
and X2
. When spacing
is set to 'linear'
, the function is identical to the inbuilt linspace
function. When spacing
is set to 'log'
, the function is similar to the inbuilt logspace
function, except that X1
and X2
define the start and end numbers, not decades. For logarithmically spaced points, X1
must be > 0. If N
< 2, X2
is returned.
|
starting points value |
|
ending points value (where |
|
number of points in the vector (default = 100) |
|
|
|
row vector of equally spaced points |
linspace
, logspace
getkWavePath | getWin |
© 2009-2014 Bradley Treeby and Ben Cox.