size(m,2) how the function works?

3 visualizzazioni (ultimi 30 giorni)
Shaila parvin
Shaila parvin il 29 Giu 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.

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by