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!