Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Help for optimizing a code
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi
I'm trying to optimize a code with nested for loops (originally written in another language ), and I try to get it in the proper "matlab" form... I've already asked many questions in this forum but now I don't know if I'm going the proper way or not. I've attached to this post a m file with the original loops, and the way I think optimized...
Could anyone of you have a look and tell me if it's just rubbish or if I'm going the good way ?
Thanks...
댓글 수: 5
Geoff Hayes
2014년 11월 17일
Stéphane - does your testLoop.m code contain the small matrix that takes a really long time to evaluate? When I ran the attached, tic and toc indicated that the elapsed time was 0.056486 seconds which is pretty quick…
Note that there did seem to be some differences between dm and dm2. Have you observed the same?
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!