size(m,2) how the function works?

9 vues (au cours des 30 derniers jours)
Shaila parvin
Shaila parvin le 29 Juin 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.

Réponse acceptée

Matt J
Matt J le 29 Juin 2013
n=size(m,2);
gives the number of columns of m.

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center 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