pick up elements from a cell array and the result must be a cell array
Ältere Kommentare anzeigen
I want to pick up all elements of a cell array except the last element. When I do V{1:end-1}, the result seems not to be a cell array.
Akzeptierte Antwort
Weitere Antworten (1)
madhan ravi
am 14 Aug. 2019
cellfun(@(x) reshape(x(1:end-1),[],1), V,'un',0)
Kategorien
Mehr zu Software Development Tools finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!