pick up elements from a cell array and the result must be a cell array
Mostra commenti meno recenti
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.
Risposta accettata
Più risposte (1)
madhan ravi
il 14 Ago 2019
cellfun(@(x) reshape(x(1:end-1),[],1), V,'un',0)
Categorie
Scopri di più su Software Development Tools in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!