getting the variable size value
Show older comments
I have a variable of size x*y .what matlab command is used to get the x value.
Accepted Answer
More Answers (1)
Ned Gulley
on 14 Jun 2011
[m,n] = size(X)
m = size(X,dim)
So to find the number of rows, you can say
numRows = size(X,1)
1 Comment
ramakrishna bathini
on 14 Jun 2011
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!