| Symbolic Math Toolbox | ![]() |
Syntax
Description
Suppose A is an m-by-n symbolic or numeric matrix. The statement d = size(A) returns a numeric vector with two integer components, d = [m,n].
The multiple assignment statement [m,n] = size(A) returns the two integers in two separate variables.
The statement d = size(A,n) returns the length of the dimension specified by the scalar n. For example, size(A,1) is the number of rows of A and size(A,2) is the number of columns of A.
Examples
See Also
length, ndims in the online MATLAB Function Reference
| sinint | solve | ![]() |