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

1 visualizzazione (ultimi 30 giorni)
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 Commento
Geoff Hayes
Geoff Hayes il 29 Set 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.

Accedi per commentare.

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Modeling in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by