run two program(infinite loop) prallel in matlab
Mostrar comentarios más antiguos
Hello,
how can i run two infinite loop parallel in matlab.
data listening infinite loop
while 1
while ~(iStream.available)
end
readS(iStream);
end
command sending infinite loop
while 1
userInput = input('Server: ', 's');
oStream.sendS(userInput);
end
how can i run this both infinite loop program parallel in matlab plz help me out
Respuesta aceptada
Más respuestas (1)
Haiko
el 16 de En. de 2014
0 votos
Using parfor might be a solution. Your code has to be rewriten a bit. See as well the help function on parfor.
3 comentarios
Walter Roberson
el 16 de En. de 2014
spmd would be more appropriate than parfor for such a situation.
bsissa soufien
el 31 de Mayo de 2015
hi I can modify a spin protocol source code in wireless sensor network domain to optimize energy and diminier connsommation and here is the source code of spin protocol:
Walter Roberson
el 31 de Mayo de 2015
The source did not end up attached. But this would not be the right Question to attach it to as the Question does not pertain to WSN.
Categorías
Más información sobre Clocks and Timers 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!