Functions
>
Vector and Matrix
>
Array Characteristics
> Dimensions of a Matrix
Dimensions of a Matrix
•
rows(A)
—Returns the number of rows in
A
.
•
cols(A)
—Returns the number of columns in
A
.
If
A
is neither a vector nor a matrix, both
rows
and
cols
return zero.
Arguments
•
A
is a vector or a matrix.
Related Topics
About Array Characteristics Functions
Was this helpful?
This site works best with JavaScript enabled