How can I arrange a vector in ascending order

2 views (last 30 days)
How can I arrange a vector in ascending order D = (3 6 7 2 -4 7 3 2 )

Accepted Answer

Chunru
Chunru on 29 Nov 2021
D = [3 6 7 2 -4 7 3 2 ]
D = 1×8
3 6 7 2 -4 7 3 2
D1 = sort(D)
D1 = 1×8
-4 2 2 3 3 6 7 7

More Answers (0)

Categories

Find more on Dynamic System Models in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!