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
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
2016-9-29
You could potentially create a Triggered Subsystem. However it might be more appropriate to use an if block.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!