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

1 Ansicht (letzte 30 Tage)
mary
mary am 2 Dez. 2013
Kommentiert: Sean de Wolski am 2 Dez. 2013
a=[1 1 1;1 1 1;1 1 1;1 1 1]
no of rows=4
col=3

Akzeptierte Antwort

sixwwwwww
sixwwwwww am 2 Dez. 2013
Dear mary, use
[row, col] = size(a)

Weitere Antworten (1)

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

Community Treasure Hunt

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

Start Hunting!

Translated by