![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172093/image.jpeg)
how to use pause command inside embedded matlab in simulink?
조회 수: 2 (최근 30일)
이전 댓글 표시
I wrote a code for fft and placed inside embedded matlab block. I am getting error when i run it. Can anyone tell me option to go for an alternate solution for the use of " pause " command. x0=1;x1=2;x8=3;x9=4;
pause(.04)
a0=x0+x8
pause(.08)
a1=x1+x9
the above code is just a part of my project
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2012년 10월 20일
편집: Azzi Abdelmalek
2012년 10월 20일
function pause is not supported with matlab function, use instead interpreted matlab function
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172093/image.jpeg)
the content of your function file is
function y=fpose(u)
y1=u(1)+u(2)
pause(0.4)
y2=u(1)*u(2)
pause(0.4)
y=y1+y2
댓글 수: 3
Azzi Abdelmalek
2012년 10월 20일
in matlab editor program a function (e.g named fpose)
function y=fpose(u)
%your code
pause(0.1)
in matlab function block set a name of your function created before
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!