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

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

댓글 수: 1

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

댓글을 달려면 로그인하십시오.

 채택된 답변

Jiro Doke
Jiro Doke 2016년 10월 25일

6 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with DSP System Toolbox에 대해 자세히 알아보기

질문:

2016년 10월 25일

답변:

2016년 10월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by