how to switch on a function for a specific condition is met

1 Ansicht (letzte 30 Tage)
how to switch on a function for a specific condition is met

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 20 Mär. 2017
function_is_on = false;
...
while true
...
if function_is_on; call_function(); end
...
if condition_is_met; function_is_on = true; end
...
end

Weitere Antworten (0)

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by