How to sort the rows of a cell?
2 views (last 30 days)
Show older comments
Hello,
I have a (4,1) cell.
How to sort the contents of the cell rowwise.
0 Comments
Accepted Answer
More Answers (1)
Image Analyst
on 3 Oct 2021
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 Comments
See Also
Categories
Find more on Shifting and Sorting Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!