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.

 Akzeptierte Antwort

Matt J
Matt J am 29 Jun. 2013

2 Stimmen

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

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-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