pick up elements from a cell array and the result must be a cell array
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (1)
madhan ravi
le 14 Août 2019
cellfun(@(x) reshape(x(1:end-1),[],1), V,'un',0)
Catégories
En savoir plus sur Software Development Tools dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!