program runtime question
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
Jason Ross
2011년 4월 6일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Parallel Computing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!