Simulink Matlab Function
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, I'm studying on matlab function for my research.I want to use delay or pause command in function.The function contains:
if i1>=40.42
pause(5)
if
a=0;
b=0;
c=1;
end
end
lines.But pause command does not work properly.If you can tell me how to use it or any other command that does same work(delay etc.). Thank you for your attention.
2 commentaires
Kaustubha Govind
le 17 Oct 2011
PAUSE seems like the right function for your usecase. Please explain further what you mean by "pause command does not work properly"?
Réponses (1)
Rick Rosson
le 18 Oct 2011
Please include the following line of code:
coder.extrinsic('pause');
in the function before the first call to the pause function.
HTH
Rick
0 commentaires
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!