pick up elements from a cell array and the result must be a cell array
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (1)
madhan ravi
el 14 de Ag. de 2019
cellfun(@(x) reshape(x(1:end-1),[],1), V,'un',0)
Categorías
Más información sobre Software Development Tools en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!