size(m,2) how the function works?

6 Ansichten (letzte 30 Tage)
Shaila parvin
Shaila parvin am 29 Jun. 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.

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by