\(\text{NumberRows}\)¶
You can use the \(\text{NumberRows}\) function to determine the number of rows in a matrix.
You can use the \nrows
backslash command to insert this function.
The following variants of this function are available:
\(\text{integer } \text{NumberRows} \left ( \text{<matrix>} \right )\)
The \(\text{<matrix>}\) value is the matrix to determine the number of rows in. The function returns an integer value indicating the number of rows.
Below is a basic example using the \(NumberRows\) function.
\[\begin{split}A = \begin{bmatrix}
1 & 2 & 3 \\
4 & 5 & 6
\end{bmatrix}\end{split}\]
\[n = \text{NumberRows } A \;\;\;\; \text{a = 2}\]