Using command prompt during running script

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 日

0 投票

Yes it is.
doc input
doc keyboard

3 件のコメント

Duije Deurloo
Duije Deurloo 2011 年 4 月 6 日
Hi Sean,
Thanks, I have tried both and it works, but it is not exactly what I was searching for. They both really interrupt the execution of the script.
More about my application: It is data-aquistition and I really want this running uninterrupted. During this process I want to tweak parameters of the processing. Of course I can also make a real "Guide" application with buttons and sliders, but I prefer a simple script and commandline entry of parameters because this is quick (and dirty)
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...

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

質問済み:

2011 年 4 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by