Simulinkでベ​​クトル信号の要素を​昇順、降順で並​び替​えるにはどうすれ​ば​よいですか?

Simulinkでベクトルの要素の並び替えをしたいです。例えば、[2 4 6 8 10]という信号があって、[10 8 6 4 2]という信号を出力する方法を教えてください。

1 Kommentar

Yoshio Watanabe
Yoshio Watanabe am 25 Okt. 2016
この例でしたら、Selectorブロックのインデックスに[5:-1:1]、入力の端子サイズは5と入力してみてください。

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Jiro Doke
Jiro Doke am 25 Okt. 2016

6 Stimmen

DSP System Toolbox があれば Sort ブロックが使えます。それか MATLAB Function ブロック で MATLAB の sort 関数を使ってみてください。

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with DSP System Toolbox finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by