logspace | R Documentation |
Generate logarithmically spaced vectors.
logspace(a, b, n=50)
a |
numeric scalar specifying exponent for starting point |
b |
numeric scalar specifying exponent for ending point |
n |
numeric scalar specifying number of points to be generated |
Useful for creating frequency vectors, it is a logarithmic equivalent
of linspace
.
Returns vector containing containing n
points logarithmically
spaced between decades 10^\code{a}
and 10^\code{b}
. For
n < 2
, b
is returned.
P. Roebuck proebuck1701@gmail.com
linspace
logspace(1, pi, 36)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.