size(m,2) how the function works?

4 visualizaciones (últimos 30 días)
Shaila parvin
Shaila parvin el 29 de Jun. de 2013
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
n=size(m,2);
gives the number of columns of m.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by