Up | Prev | PrevTail | Tail |
Once an element of a matrix has been assigned, it may be referred to in standard array
element notation. Thus y(2,1)
refers to the element in the second row and first column
of the matrix y
.
The easiest way to access an element of a matrix-valued expression is to assign
the expression to a variable and then use the syntax described above. Another
way is to use the part
operator: if M is either a matrix or a matrix-valued
expression then part(M, i)
evaluates to row i represented as a list, and
(hence) part(M, i, j)
evaluates to the matrix element in row i and column
j.
Up | Prev | PrevTail | Front |