Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

logspace

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^\code{a} and 10^\code{b}. For n < 2, b is returned.

Author(s)

See Also

Examples

logspace(1, pi, 36)

matlab

MATLAB emulation package

v1.0.2
Artistic-2.0
Authors
P. Roebuck
Initial release
2014-06-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.