How can i use If block for a matrix in SIMULINK?

조회 수: 2 (최근 30일)
Alex Yande
Alex Yande 2019년 3월 18일
댓글: madhan ravi 2019년 3월 19일
My block-set should use if block and convert any value of the given matrix from current value to 5 if a value greater than 0.
How can i do this operation?
Thx!!
I have just added the model and image.
untitled.png

채택된 답변

madhan ravi
madhan ravi 2019년 3월 18일
Ok lets use some vectorised method (logical indexing):
Screen Shot 2019-03-18 at 5.45.52 PM.png
  댓글 수: 6
Alex Yande
Alex Yande 2019년 3월 19일
Thank you madhan ravi.
Yesterday, after your message, i completed the codes which are similar to yours. Thanks a lot! :)
madhan ravi
madhan ravi 2019년 3월 19일
No mention, glad ;-).

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by