Using command prompt during running script
7 次查看(过去 30 天)
显示 更早的评论
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)
0 个评论
回答(1 个)
Sean de Wolski
2011-4-6
Yes it is.
doc input
doc keyboard
3 个评论
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)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!