Accessing inputs to a masked block from the mask initialization

조회 수: 1 (최근 30일)
John F
John F 2012년 3월 12일
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일
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
John F
John F 2012년 3월 13일
I see your point. For what I needed, it's way too complicated. Thanks.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Author Block Masks에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by