linspace: Implementation of the 'linspace' Function from Matlab

Description Usage Arguments Value Examples

View source: R/ubiquity.r

Description

Creates a vector of n elements equally spaced apart.

Usage

1
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

1
linspace(0,100, 20)

ubiquity documentation built on Sept. 5, 2021, 5:15 p.m.