getting the variable size value

3 ビュー (過去 30 日間)
ramakrishna bathini
ramakrishna bathini 2011 年 6 月 14 日
I have a variable of size x*y .what matlab command is used to get the x value.

採用された回答

Alex Taylor
Alex Taylor 2011 年 6 月 14 日
[R,C] = size(A);
doc size

その他の回答 (1 件)

Ned Gulley
Ned Gulley 2011 年 6 月 14 日
To find the size, use size.
[m,n] = size(X)
m = size(X,dim)
So to find the number of rows, you can say
numRows = size(X,1)
  1 件のコメント
ramakrishna bathini
ramakrishna bathini 2011 年 6 月 14 日
thanks for the reply a=size(X,1) is the command i was looking for...

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeEncryption / Cryptography についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by