|Programming and Data Types|
Operating on Planes and Matrices
Functions that operate on planes or matrices, such as the linear algebra and matrix functions in the
matfun directory, do not accept multidimensional arrays as arguments. That is, you cannot use the functions in the
matfun directory, or the array operators *,
/, with multidimensional arguments. Supplying multidimensional arguments or operands in these cases results in an error.
You can use indexing to apply a matrix function or operator to matrices within a multidimensional array. For example, create a three-dimensional array
function to the entire multidimensional array results in an error.
You can, however, apply
eig to planes within the array. For example, use colon notation to index just one page (in this case, the second) of the array.
In the first case, subscripts are not colons, you must use |
|Computing with Multidimensional Arrays||Organizing Data in Multidimensional Arrays|