getting the variable size value

1 vue (au cours des 30 derniers jours)
ramakrishna bathini
ramakrishna bathini le 14 Juin 2011
I have a variable of size x*y .what matlab command is used to get the x value.

Réponse acceptée

Alex Taylor
Alex Taylor le 14 Juin 2011
[R,C] = size(A);
doc size

Plus de réponses (1)

Ned Gulley
Ned Gulley le 14 Juin 2011
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 commentaire
ramakrishna bathini
ramakrishna bathini le 14 Juin 2011
thanks for the reply a=size(X,1) is the command i was looking for...

Connectez-vous pour commenter.

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by