|MATLAB Function Reference|
Generate logarithmically spaced vectors
logspace function generates logarithmically spaced vectors. Especially useful for creating frequency vectors, it is a logarithmic equivalent of
linspace and the ":" or colon operator.
y = logspace(a,b)
generates a row vector
y of 50 logarithmically spaced points between decades
y = logspace(a,b,n)
n points between decades
y = logspace(a,pi)
generates the points between
pi, which is useful for digital signal processing where frequencies over this interval go around the unit circle.
All the arguments to
logspace must be scalars.
The colon operator
© 1994-2005 The MathWorks, Inc.