logspace {matlab}R Documentation

MATLAB logspace function

Description

Generate logarithmically spaced vectors.

Usage

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^a and 10^b.

Author(s)

P. Roebuck, roebuck@mdanderson.org

See Also

linspace

Examples

logspace(1, pi, 36)

[Package matlab version 0.8-2 Index]