size(m,2) how the function works?

조회 수: 8 (최근 30일)
Shaila parvin
Shaila parvin 2013년 6월 29일
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.

채택된 답변

Matt J
Matt J 2013년 6월 29일
n=size(m,2);
gives the number of columns of m.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by