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

1 回表示 (過去 30 日間)
Terek Li
Terek Li 2016 年 9 月 29 日
回答済み: Walter Roberson 2016 年 9 月 29 日
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 件のコメント
Geoff Hayes
Geoff Hayes 2016 年 9 月 29 日
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.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2016 年 9 月 29 日
You could potentially create a Triggered Subsystem. However it might be more appropriate to use an if block.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by