how to make infinite loop for parallel computing
Mostra commenti meno recenti
Hi,
I need to run an infinite loop and want to use parallel computing toolbox. The toolbox only provides "parfor" so I need to make an infinite "for" loop instead of while loop. I can use "for i=1: Inf" but MatLab cuts down the Inf to some huge number. How can I make real infinite loop like "while true"??
Thanks in advance, Namshik
Risposte (2)
the cyclist
il 11 Ago 2011
0 voti
I don't use the parallel computing toolbox, but I wonder if you can just nest a "while true" loop inside a "for i=1:1" loop to do what you want.
Walter Roberson
il 11 Ago 2011
0 voti
In newer versions, parfor runs the loop backwards... it is difficult to count backwards from infinity.
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!