R/logspace.R

Defines functions logspace

Documented in logspace

###
### $Id: logspace.R 22 2022-05-30 18:03:47Z proebuck $
###
### Generate logarithmically spaced vectors.
###


##-----------------------------------------------------------------------------
logspace <- function(a, b, n = 50) {
    if (b == pi) {
        b <- log10(pi)
    }

    10 ^ matlab::linspace(a, b, n)
}

Try the matlab package in your browser

Any scripts or data that you put into this service are public.

matlab documentation built on June 2, 2022, 1:09 a.m.