How to give the total amount of row from a matrix as a value?
Show older comments
I need to define the total amount of row of a matrix as a variable
and don't how to extract this number.
For example, let
M=
1 2
2 4
3 6
4 8
5 10
In this case the row number would be 5.
I thought there would be a command such as
row(M)
but did not work.
Hopefully someone knows how to solve this
Thank you for your help
Emerson
Accepted Answer
More Answers (1)
Teja Muppirala
on 30 Mar 2011
help size
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!