What does cellfun(@(m)1:size(m,1)) means

1 回表示 (過去 30 日間)
Arslan F
Arslan F 2016 年 11 月 18 日
回答済み: Steven Lord 2016 年 11 月 18 日
What does cellfun(@(m)1:size(m,1)) means

回答 (1 件)

Steven Lord
Steven Lord 2016 年 11 月 18 日
Well, as written that's not a valid call to the cellfun function. You're missing the second input that contains the cell array to whose cells you want to apply the anonymous function specified as the first input. See the examples on the documentation page to which I linked for more information.

カテゴリ

Help Center および File ExchangeFunction Creation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by