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

조회 수: 1 (최근 30일)
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 CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by