is there a function that calculates the no. of rows or cols

1 vue (au cours des 30 derniers jours)
mary
mary le 2 Déc 2013
Commenté : Sean de Wolski le 2 Déc 2013
a=[1 1 1;1 1 1;1 1 1;1 1 1]
no of rows=4
col=3

Réponse acceptée

sixwwwwww
sixwwwwww le 2 Déc 2013
Dear mary, use
[row, col] = size(a)

Plus de réponses (1)

Sean de Wolski
Sean de Wolski le 2 Déc 2013
[r,c] = size(a);
For more info:
doc size

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by