sorting data with specific

2 次查看(过去 30 天)
A=[5 4 3 2 1; 6 7 8 9 0] . How to sort A being A=[1 2 3 4 5; 0 9 8 7 6] ???

采纳的回答

Stephen23
Stephen23 2023-4-2
A = [5,4,3,2,1;6,7,8,9,0];
B = sortrows(A.').'
B = 2×5
1 2 3 4 5 0 9 8 7 6

更多回答(0 个)

类别

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

标签

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by