manpagez: man pages & more
info octave
Home | html | info | man
[ < ] [ > ]   [ << ] [ 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

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.