필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

change input during Timer function is running

조회 수: 1 (최근 30일)
muhammad faiz
muhammad faiz 2018년 1월 26일
마감: Walter Roberson 2018년 1월 26일
Hi, i have like below:
function paus(src,evt,b)
c=b+1;
display(b);
end
and my timer is:
a = timer('ExecutionMode','fixedRate','Period',0.065,'TimerFcn',@(~,~)paus(src,evt,b))
The question during timer is running, i want to keep changing the value of input (variable b). However, the result still shows the initial value of b (eg b=1, thus c=2) and the result (variable C) is not changing. why is that? can i change any input of my function during timer is running?
is urgent!
please help
thank you!

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by