getting the variable size value
2 次查看(过去 30 天)
显示 更早的评论
I have a variable of size x*y .what matlab command is used to get the x value.
0 个评论
采纳的回答
更多回答(1 个)
Ned Gulley
2011-6-14
[m,n] = size(X)
m = size(X,dim)
So to find the number of rows, you can say
numRows = size(X,1)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!