how to switch on a function for a specific condition is met
2 次查看(过去 30 天)
显示 更早的评论
how to switch on a function for a specific condition is met
0 个评论
采纳的回答
Walter Roberson
2017-3-20
function_is_on = false;
...
while true
...
if function_is_on; call_function(); end
...
if condition_is_met; function_is_on = true; end
...
end
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!