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

采纳的回答

José-Luis
José-Luis 2017-7-4
cellfun(@(x) {fliplr(x)},a)
  4 个评论
skysky2000
skysky2000 2017-7-4
please jose, it shows me this message error expected to be a cell array, was double instead. when I convert d from double to cell with d= num2cell(d); didnt work,
I woundering if there is another way to reverse elements inside cell.
Thanks,,

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by