[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
1.2.3 Matrix Arithmetic
Octave has a convenient operator notation for performing matrix
arithmetic. For example, to multiply the matrix A
by a scalar
value, type the command
octave:4> 2 * A |
To multiply the two matrices A
and B
, type the command
octave:5> A * B |
and to form the matrix product
transpose (A) * A
,
type the command
octave:6> A' * A |