next up previous contents
Next: Standard operations Up: Simple calculations and graphs Previous: Graphs

Arithmetic operations on matrices

Matlab can perform the standard arithmetic operations on matrices, vectors, and scalars (that is, on 2-, 1-, and 0-dimensional arrays): addition, subtraction, and multiplication. In addition, Matlab defines a notion of matrix division as well as ``vectorized'' operations. All vectorized operations (these include addition, subtraction, and scalar multiplication, as explained below) can be applied to n-dimensional arrays for any value of n, but multiplication and division are restricted to matrices and vectors ( tex2html_wrap_inline673 ).





Mark S. Gockenbach
Wed Sep 8 10:44:13 EDT 1999