size(m,2) how the function works?

3 ビュー (過去 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 Center および File ExchangeMATLAB についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by