sorting data with specific

1 view (last 30 days)
Takim Mustakim
Takim Mustakim on 2 Apr 2023
Commented: Takim Mustakim on 2 Apr 2023
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] ???

Accepted Answer

Stephen23
Stephen23 on 2 Apr 2023
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

More Answers (0)

Categories

Find more on Shifting and Sorting Matrices in Help Center and File Exchange

Tags

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!