pick up elements from a cell array and the result must be a cell array
이전 댓글 표시
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.
채택된 답변
추가 답변 (1개)
madhan ravi
2019년 8월 14일
cellfun(@(x) reshape(x(1:end-1),[],1), V,'un',0)
카테고리
도움말 센터 및 File Exchange에서 Software Development Tools에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!