is there a function that calculates the no. of rows or cols

1 回表示 (過去 30 日間)
mary
mary 2013 年 12 月 2 日
コメント済み: Sean de Wolski 2013 年 12 月 2 日
a=[1 1 1;1 1 1;1 1 1;1 1 1]
no of rows=4
col=3

採用された回答

sixwwwwww
sixwwwwww 2013 年 12 月 2 日
Dear mary, use
[row, col] = size(a)

その他の回答 (1 件)

Sean de Wolski
Sean de Wolski 2013 年 12 月 2 日
[r,c] = size(a);
For more info:
doc size

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by