Extract non zero term from Vector
2 ビュー (過去 30 日間)
古いコメントを表示
Hello, I have a 1 x 9 vector which contains all zeroes apart from one element which will take a +ve or -ve number, it's index will change, how do i extract this non zero number in Simulink? Is there a block for it?
0 件のコメント
採用された回答
Guillaume
2017 年 8 月 30 日
編集済み: Guillaume
2017 年 8 月 30 日
A quick search for "simulink nonzeros" returns as its first link this find block. If you set the Show output port for nonzero input values to true, then you'll get the nonzeros values.
2 件のコメント
Guillaume
2017 年 8 月 30 日
As I wrote:
If you set the Show output port for nonzero input values to true, then you'll get the nonzeros values.
その他の回答 (2 件)
参考
カテゴリ
Help Center および File Exchange で General Applications についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!