speeddifference command window/editor?
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
When timing my algorithm, I see a very big difference when using the editor and running the algorithm or by copy pasting the code into the command window. Does anyone knows where does that difference come from?
댓글 수: 0
답변 (1개)
Jan
2012년 9월 26일
0 개 추천
Code stored in a function is accelerated by the JIT, the Just-In-Time compiler. Therefore speed measurements should be performed with functions.
But when you add a "clear all" or clear the function specifically, reloading the M-file needs a lot of time.
A more detailed explanation is possible, if you post the corresponding code and your timings.
댓글 수: 0
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!