Simulink Matlab Function
2 ビュー (過去 30 日間)
古いコメントを表示
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"?
回答 (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
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!