How can I sort columns of a matrix based on the order of where the minimums occurs?
8 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a column matrix. I want to reorder the columns of the matrix based on the occurence of minimum in each column i.e. the first column should be the one where the minimum value occurs the first, the second where it occurs the second and so on. The attached matrix "id_min" shows this unordered arrangement, for example for column 2 the minimum value is in row 177, so it should be the first column of the new matrix, then column 39 which has the same row 177 for its minimum value, then column 38 whose minimum is in row 179 an so on. The data matrix "aa" is also attached. Your help would be highly appreciated.
Thanks
0 个评论
采纳的回答
更多回答(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!