getting the variable size value

1 次查看(过去 30 天)
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
thanks for the reply a=size(X,1) is the command i was looking for...

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by