1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
% $Id: logspace.Rd 25 2022-05-30 18:46:01Z proebuck $
\name{logspace}
\alias{logspace}
\title{MATLAB logspace function}
\description{
Generate logarithmically spaced vectors.
}
\usage{
logspace(a, b, n=50)
}
\arguments{
\item{a}{numeric scalar specifying exponent for starting point}
\item{b}{numeric scalar specifying exponent for ending point}
\item{n}{numeric scalar specifying number of points to be generated}
}
\details{
Useful for creating frequency vectors, it is a logarithmic equivalent
of \code{linspace}.
}
\value{
Returns vector containing containing \code{n} points logarithmically
spaced between decades \eqn{10^\code{a}} and \eqn{10^\code{b}}. For
\eqn{n < 2}, \code{b} is returned.
}
\author{
P. Roebuck \email{proebuck1701@gmail.com}
}
\seealso{
\code{\link{linspace}}
}
\examples{
logspace(1, pi, 36)
}
\keyword{manip}
|