Simulink Matlab Function
조회 수: 1 (최근 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!