linspace: Implementation of the 'linspace' Function from Matlab

View source: R/ubiquity.r

linspaceR Documentation

Implementation of the linspace Function from Matlab

Description

Creates a vector of n elements equally spaced apart.

Usage

linspace(a, b, n = 100)

Arguments

a

initial number

b

final number

n

number of elements (integer >= 2)

Value

vector of numbers from a to b with n linearly spaced apart

Examples

linspace(0,100, 20)

ubiquity documentation built on Nov. 2, 2023, 6:26 p.m.