Download Scilab for Real Dummies

Transcript
Introduction
As Scilab is built around matrices we are forced to use them
Scilab stores numbers (and characters) in matrices
A matrix can be seen as a table, consisting of m rows and n columns
(mxn matrices, also denoted ixj matrices)
Scalar variables do not exist per se, they are treated as 1x1 matrices
The general form of a Scilab matrix (here 3x3 matrix) is
A = [11 12 13; 21 22 23; 31 32 33]
Row elements can also be separated by commas:
A = [11, 12, 13; 21, 22, 23; 31, 32, 33]
In both cases semicolons separate rows
The next page shows both alternatives for the 3x3 matrix
“[The vector] has never been of the slightest use to any creature.”
Attributed to Lord Kelvin