logspace: MATLAB logspace function

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/logspace.R

Description

Generate logarithmically spaced vectors.

Usage

1
logspace(a, b, n=50)

Arguments

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

Details

Useful for creating frequency vectors, it is a logarithmic equivalent of linspace.

Value

Returns vector containing containing n points logarithmically spaced between decades 10^\code{a} and 10^\code{b}. For n < 2, b is returned.

Author(s)

P. Roebuck proebuck@mdanderson.org

See Also

linspace

Examples

1
logspace(1, pi, 36)

matlab documentation built on May 20, 2017, 4:40 a.m.

Search within the matlab package
Search all R packages, documentation and source code