getting the variable size value

 Respuesta aceptada

Más respuestas (1)

Ned Gulley
Ned Gulley el 14 de Jun. de 2011

0 votos

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 comentario

ramakrishna bathini
ramakrishna bathini el 14 de Jun. de 2011
thanks for the reply a=size(X,1) is the command i was looking for...

Iniciar sesión para comentar.

Categorías

Más información sobre Encryption / Cryptography en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by