How do I run parallel programs in Matlab?
Mostrar comentarios más antiguos
Hi I wish to run two loops independently. Specifically, one loop will be playing a sound at random intervals while another loop will be constantly looking for a voltage source from a button click. Is it possible to run two programs simultaneously?
Thanks.
Respuestas (2)
Jan
el 31 de Jul. de 2012
0 votos
You can start the sound from a TIMER, which modifies its interval in the callback. But looking for a button click is usually not done in a loop, but by the callback mechanism of the button. Clicking on the button triggers the event, not looking for the status of the button in an endless loop.
1 comentario
Katherine
el 1 de Ag. de 2012
Categorías
Más información sobre Programming en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!