how to count row and column of a matrix
826 ビュー (過去 30 日間)
古いコメントを表示
if i have a big matrix and i don't know its size, how to find out its size? and how to save it as variable?
0 件のコメント
採用された回答
その他の回答 (2 件)
Md. Kawsar Ahmed Asif
2017 年 12 月 13 日
編集済み: Md. Kawsar Ahmed Asif
2017 年 12 月 13 日
[rownum,colnum]=size(A)
Where 'A' is a mxn matrix.
0 件のコメント
Anurag Pratap Singh
2020 年 6 月 25 日
Hii Eri
To know the size of a matrix you can use the size function and pass your matrix in it
[NumRows NumCols]=size(your_matrix);
The first output is the Number of rows and second the number of columns
Thank you
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!