how to run block of a function only if block of another function has been ran

4 vues (au cours des 30 derniers jours)
What is the most efficient way to code so that one block of function A is ran only when another block of function B has been ran?
Much thanks!
  1 commentaire
Geoff Hayes
Geoff Hayes le 29 Sep 2016
Terek - what is the relationship between function A and B? Will A always be called after B, or is it called from within B? Please clarify.

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 29 Sep 2016
You could potentially create a Triggered Subsystem. However it might be more appropriate to use an if block.

Plus de réponses (0)

Catégories

En savoir plus sur Modeling 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