Contents Previous Next Subchapters

Generating A Sequence Of Integers
Syntax seq(length)
See Also start : : finish , and fill

Description
Returns a column vector with the specified length and first element equal to 1, second element equal to 2, and so on, where length is a positive integer scalar.

Example
     seq(3)
returns
     {
     1
     2
     3
     }