|
SOLUTIONS
|
Mathematica
>
Mathematics and Algorithms
>
Matrices and Linear Algebra
>
Parts of Matrices
>
Dimensions
BUILT-IN MATHEMATICA SYMBOL
Dimensions
Dimensions[expr]
gives a list of the dimensions of expr.
Dimensions[expr, n]
gives a list of the dimensions of expr down to level n.
DetailsDetails
- expr must be a full array, with all the pieces of expr at a particular level having the same length. (The elements of expr can then be thought of as filling up a hyper-rectangular region.)
- Each successive level in expr sampled by Dimensions must have the same head.
- For SparseArray objects, Dimensions yields the dimensions of the corresponding ordinary lists.
New in 1 | Last modified in 5
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
