Flipping a Cell Array

1 次查看(过去 30 天)
I have an m x n cell array and I need to flip the 2:m elements vertically. Flipud doesn't seem to be working neither does flipdim(...,1). Suggestions?
Edit: I'm using R2012a.

采纳的回答

Walter Roberson
Walter Roberson 2016-7-5
NewCell = YourCell([1, m:-1:2], :);

更多回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2016-7-5
A(2:m,:)=flipud(A(2:m,:))

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by