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

4 次查看(过去 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 CenterFile Exchange 中查找有关 Function Creation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by