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.
Was this helpful?