Matrix shape
Matrix shape lists the number of rows followed by the number of columns.
On this page 7 sections
01A matrix arranges numbers in a rectangle#
A matrix arranges numbers in a rectangle. A row runs across; a column runs down. Its shape records how many of each.
This matrix has 2 rows and 3 columns. Write the row count first: , read “2 by 3.”
Shape of ?
Show answer and explanation
3 rows, then 2 columns.
02One row is still a matrix#
One row is still a matrix. One column is still a matrix. Every position counts, including a zero.
How many columns?
Show answer and explanation
All three zero entries occupy columns.
03A shape keeps direction#
A shape keeps direction. A matrix and a matrix each contain 6 entries, but their row and column counts differ.
A table has one row per file and one column per feature: 4 files, 2 features. Shape?
Show answer and explanation
Files give 4 rows; features give 2 columns.
Count rows first, then columns; zero entries still count.
- Identify the row and column dimensions of a matrix.
Sources & further reading
- [1]