init

From STX Wiki
< Programmer Guide‎ | Command Reference‎ | EVAL
Revision as of 14:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
init

Create a vector or a matrix and initialize it with a particular value. This is a subcommand of the EVAL command.

Usage:

init(rows, cols, value)

Parameters:
rows
The number of rows. There is no default.
cols
The number of columns. The default is 1.
value
The value to initialize with. The default is 0.
Return Type:

vector or matrix

Navigation menu

Personal tools