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

1 Ansicht (letzte 30 Tage)
Arslan F
Arslan F am 18 Nov. 2016
Beantwortet: Steven Lord am 18 Nov. 2016
What does cellfun(@(m)1:size(m,1)) means

Antworten (1)

Steven Lord
Steven Lord am 18 Nov. 2016
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.

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by