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.
참고 항목
카테고리
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!