Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
mary
mary el 2 de Dic. de 2013
Comentada: Sean de Wolski el 2 de Dic. de 2013
a=[1 1 1;1 1 1;1 1 1;1 1 1]
no of rows=4
col=3

Respuesta aceptada

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

Más respuestas (1)

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

Categorías

Más información sobre Multidimensional Arrays en Help Center 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