how to reverse cell elements from left to right
1 回表示 (過去 30 日間)
古いコメントを表示
Dear all, I have a={[1 33 4 5] [77 8 2] [1 5]} , how to reverse the elements inside the cell. expect answer is: b= {[5 4 33 1] [2 8 77] [5 1]}
Thanks
1 件のコメント
Stephen23
2017 年 7 月 5 日
Without defining an intermediate anonymous function:
cellfun(@fliplr,a, 'uni',0)
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!