Indices

`>> A(m,n)`

. Here
`>> A(3,2)`

gives the value of this element, namely
`>> A(3,2) = 3`

changes the original value -2 of the element on the third row and second column of

`>> A(3,[2 4])`

gives the elements

`>> B=A([1 2 3],[2 4])`

gives the 3 x 2 matrix consisting of the elements of

In view of the remarks from paragraph 4.2.4, this could also have been accomplished with the command

`>> A(1:3,[2 4])`

When only `:' is used, all rows or columns are meant. This can appear in the following forms:

`A(:,j)`

is thecolumn of . `A(i,:)`

is therow of . `A(:,:)`

is the same as.

`>> A(2,:)-7*A(1,:)`

gives the row vector that results from subtracting seven times the first row of

`>> A(2,:) = A(2,:)-7*A(1,:)`

the same result is calculated and assigned to the second row of

Esteur 2010-03-22