Using command prompt during running script

조회 수: 9 (최근 30일)
Duije Deurloo
Duije Deurloo 2011년 4월 6일
I want to create an "infinite loop" matlab script, but change certain parameters using the command prompt during execution.
A simple test showed exactly what I feared: The command prompt dissapears during execution of the script.
Is it possible to still use the command prompt while running a script? If Yes how can I set this up? (2 threads or temporarily changed "focus" between script and prompt)

답변 (1개)

Sean de Wolski
Sean de Wolski 2011년 4월 6일
Yes it is.
doc input
doc keyboard
  댓글 수: 3
Sean de Wolski
Sean de Wolski 2011년 4월 6일
Ahhh. Then you want to use timer functions. They have a bit of a learning curve but are exactly what you're after. I believe there is a function called daqtimer, timerplot or similar that would be a good demo example for you.
(I'm on a Mac at home and don't have Data Acquisition on this laptop)
Sean de Wolski
Sean de Wolski 2011년 4월 6일
>>doc timer
for more info...

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by