program runtime question
Mostrar comentarios más antiguos
Hi,
I have a program that (for what I've done so far) takes a long time to run (~4s per loop). In the final version of the code I will be performing hundreds of loops. Would it be quicker if I assigned parts of the code as functions, or would this actually increase the run time?
Thanks
Richard
Respuesta aceptada
Más respuestas (1)
Jason Ross
el 6 de Abr. de 2011
0 votos
Have you looked into using functions from the Parallel Computing Toolbox (parfor, spmd, etc)?
Of course, not knowing your problem, you may have conditions that prevent the use of these functions.
Categorías
Más información sobre Parallel Computing 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!