next up previous contents
Next: Basic Operations Up: Basic Operation Previous: Starting Gnatlab

Simple Input

Statements and commands are entered on the command line and terminated with a new line (<enter> key). To create multi-line statements (single statements which are interpreted as one line) end all lines but the last with a backslash ( 1#1).

Variables can be assigned to with the = sign.

Matrices and vectors are entered as a series of numbers in brackets, with numbers separated by commas and rows separated by semicolons. For example, to assign the matrix:
2#2
to the variable A, Enter:

a=[1,2,3;4,5,6]
or
a=[1 2 3;4 5 6]



Arun Francis Rodrigues
1999-08-17