列ベクトルの成分を上から大きい順に変えることはできますか?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Gamma1990
am 4 Jul. 2021
Kommentiert: Gamma1990
am 4 Jul. 2021
列ベクトルが下のようなときについて質問です.
A=
1
2
3
2
このとき,行列Aの成分を上から大きい順に入れ替えた行列Bに変換して,
B=
3
2
2
1
としたいのですが,どのように実装すればよいのでしょうか?
よろしくお願いします.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Shifting and Sorting Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!