Contents
Previous
Next
Subchapters
Current Chapters->
identity
zeros
ones
fill
fillcols
fillrows
seq
toeplitz
vander
hankel
hilb
invhilb
diag
tril
triu
novalue
Parent Chapters->
Omatrix6
elementary
specialmatrices
seq
Search Tools->
contents
reference
index
search
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
}