How to sort the rows of a cell?
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a (4,1) cell.
How to sort the contents of the cell rowwise.
0 个评论
采纳的回答
更多回答(1 个)
Image Analyst
2021-10-3
A cell can have anything it in, like arrays, structures, tables, even other cell arrays. See the FAQ:
So you can't sort them. Even if the cells contain matrices, you can't sort across cells. However you could sort the contents of each cell independently.
What is inside each of your four cells? You forgot to attach it in a .mat file so we don't know.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Shifting and Sorting Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!