size(m,2) how the function works?

m=[1,2,3; 4 4 4; 3 3 1];
n=size(m,2);
answer: n=3
I don't understand how this function calculates the answer. Please help me.

 Respuesta aceptada

Matt J
Matt J el 29 de Jun. de 2013

2 votos

n=size(m,2);
gives the number of columns of m.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Preguntada:

el 29 de Jun. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by