Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
a=[1 1 1;1 1 1;1 1 1;1 1 1]
no of rows=4
col=3

Risposta accettata

sixwwwwww
sixwwwwww il 2 Dic 2013
Dear mary, use
[row, col] = size(a)

Più risposte (1)

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

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by