How can I arrange a vector in ascending order

1 次查看(过去 30 天)
How can I arrange a vector in ascending order D = (3 6 7 2 -4 7 3 2 )

采纳的回答

Chunru
Chunru 2021-11-29
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by