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.

 Réponse acceptée

Matt J
Matt J le 29 Juin 2013

2 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by