Simulinkでベクトル信号の要素を昇順、降順で並び替えるにはどうすればよいですか?
이전 댓글 표시
Simulinkでベクトルの要素の並び替えをしたいです。例えば、[2 4 6 8 10]という信号があって、[10 8 6 4 2]という信号を出力する方法を教えてください。
댓글 수: 1
Yoshio Watanabe
2016년 10월 25일
この例でしたら、Selectorブロックのインデックスに[5:-1:1]、入力の端子サイズは5と入力してみてください。
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Get Started with DSP System Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
