getting the variable size value
Afficher commentaires plus anciens
I have a variable of size x*y .what matlab command is used to get the x value.
Réponse acceptée
Plus de réponses (1)
Ned Gulley
le 14 Juin 2011
[m,n] = size(X)
m = size(X,dim)
So to find the number of rows, you can say
numRows = size(X,1)
1 commentaire
ramakrishna bathini
le 14 Juin 2011
Catégories
En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!