Simulink Matlab Function
显示 更早的评论
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 个评论
Kaustubha Govind
2011-10-17
PAUSE seems like the right function for your usecase. Please explain further what you mean by "pause command does not work properly"?
nikola
2011-10-17
回答(1 个)
Rick Rosson
2011-10-18
Please include the following line of code:
coder.extrinsic('pause');
in the function before the first call to the pause function.
HTH
Rick
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!