Filter löschen
Filter löschen

Simulink Matlab Function

1 Ansicht (letzte 30 Tage)
nikola
nikola am 17 Okt. 2011
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 Kommentare
Kaustubha Govind
Kaustubha Govind am 17 Okt. 2011
PAUSE seems like the right function for your usecase. Please explain further what you mean by "pause command does not work properly"?
nikola
nikola am 17 Okt. 2011
I mean it does not work and the warning matlab gives is (Function 'pause' implicitly resolved in the MATLAB workspace. Implicit evaluation in MATLAB is not supported. Please declare this function extrinsic using coder.extrinsic('pause'), or call it using feval.).I don't understand how to solve the problem.I've tried different variations such as ''pause(.5),pause (5)'' etc.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Rick Rosson
Rick Rosson am 18 Okt. 2011
Please include the following line of code:
coder.extrinsic('pause');
in the function before the first call to the pause function.
HTH
Rick

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by