Sort twice within the same dataset

1 次查看(过去 30 天)
BA
BA 2022-7-4
评论: BA ,2022-7-4
I'm working with a really large data set and I was hoping to write some code to sort within the same data set twice. This might sound confusing but specifically what I'm trying to do is sort one column, and while keeping the sort for that row, I want to sort another column.
If anyone is aware of a way to do this, please let me know.
Thanks

采纳的回答

dpb
dpb 2022-7-4
Well, it's certainly not totally clear what you mean -- but if you mean sort by multiple columns, see sortrows, the optional second argument, column
  12 个评论
BA
BA 2022-7-4
Well he asked for the data. I was ready to move on after the third message because I realized there were issues with the data itself.

请先登录,再进行评论。

更多回答(0 个)

类别

Find more on Characters and Strings in Help Center and File Exchange

标签

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by