|
Contents | Previous | Next | Subchapters |
| Syntax |
x(index) = expression |
x(row, column) = expression | |
| O-Matrix Mode | indices |
x = [ 1 2 ];
x(4) = 4
O-Matrix will reply
x = [ 1 , 2 , 0 , 4 ]
x = [ 1 2 0 4 ];
x(2, 2) = 4
O-Matrix will reply
{
[ 1 , 2 , 0 , 4 ]
[ 0 , 4 , 0 , 0 ]
}
x = 1;
x(3,:) = 3
O-Matrix will reply
{
1
0
3
}
x = 1;
x(:,3) = 3
O-Matrix will reply
[ 1 , 0 , 3 ]