MATLAB Answers

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

3 views (last 30 days)
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 Comment

Geoff Hayes
Geoff Hayes on 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.

Sign in to comment.

Accepted Answer

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


Sign in to comment.

More Answers (0)

Translated by