getting the variable size value

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 日

0 投票

[R,C] = size(A);
doc size

その他の回答 (1 件)

Ned Gulley
Ned Gulley 2011 年 6 月 14 日

0 投票

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...

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

カテゴリ

ヘルプ センター および File ExchangeEncryption / Cryptography についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by