Accessing inputs to a masked block from the mask initialization

I'm trying to get value of an input to a masked block to use in the mask itself. Basically, I want to do a "find" on the input vector and change a mask internal parameter based on it. How can I get the input in the mask? Thanks!

 채택된 답변

Guy Rouleau
Guy Rouleau 2012년 3월 12일

0 개 추천

I explain here why what you are trying to accomplish is probably a bad idea:
For some usage, it can be ok, for example:
In general, the documentation section "Accessing Block Data During Simulation" should help you:

댓글 수: 1

I see your point. For what I needed, it's way too complicated. Thanks.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Author Block Masks에 대해 자세히 알아보기

태그

질문:

2012년 3월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by