How can I arrange a vector in ascending order

2 visualizzazioni (ultimi 30 giorni)
How can I arrange a vector in ascending order D = (3 6 7 2 -4 7 3 2 )

Risposta accettata

Chunru
Chunru il 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

Più risposte (0)

Categorie

Scopri di più su Dynamic System Models in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by