size(m,2) how the function works?

7 views (last 30 days)
Shaila parvin
Shaila parvin on 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.

Accepted Answer

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

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!