how to switch on a function for a specific condition is met
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sharad Patel
le 20 Mar 2017
Réponse apportée : Walter Roberson
le 20 Mar 2017
how to switch on a function for a specific condition is met
0 commentaires
Réponse acceptée
Walter Roberson
le 20 Mar 2017
function_is_on = false;
...
while true
...
if function_is_on; call_function(); end
...
if condition_is_met; function_is_on = true; end
...
end
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur NaNs dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!