linspace

Type: External

Group: general

Syntax

matrix = linspace(start, end, no of values)

Description

Returns a matrix going from start to end with count elements.

Notes

A similar result can be obtained by using the colon operator.

Examples

linspace(0, 1, 11) = [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1] 
linspace(0, 10 , 3) = [0, 5, 10]