How can I arrange a vector in ascending order

3 views (last 30 days)
Temikunfayo Obayemi
Temikunfayo Obayemi on 29 Nov 2021
Answered: Chunru on 29 Nov 2021
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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by