sequence
Generate a sequence of evenly-spaced numbers.
Syntax
Section titled “Syntax”v = sequence(rows, columns, start, step)Description
Section titled “Description”Returns an array of rows × columns consecutive values starting at start (default 1), stepping by step (default 1). Equivalent to a reshaped start : step : (start + (rows*columns - 1)*step).
Examples
Section titled “Examples”sequence(4) % [1; 2; 3; 4]sequence(2, 3, 5, 2) % [5 7 9; 11 13 15]See also
Section titled “See also”linspace— Vector of equally spaced points between two endpoints.