Accessing inputs to a masked block from the mask initialization

1 vue (au cours des 30 derniers jours)
John F
John F le 12 Mar 2012
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!

Réponse acceptée

Guy Rouleau
Guy Rouleau le 12 Mar 2012
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 commentaire
John F
John F le 13 Mar 2012
I see your point. For what I needed, it's way too complicated. Thanks.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Author Block Masks dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by