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

1 visualización (últimos 30 días)
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 comentario
Geoff Hayes
Geoff Hayes el 29 de Sept. de 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.

Iniciar sesión para comentar.

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by