how to trace matlab code? and how to backtrack?
조회 수: 4 (최근 30일)
이전 댓글 표시
I have matlab code of firefly algorithm and i want to trace so as to understand it. Pls can anyone help me?
댓글 수: 0
답변 (2개)
Walter Roberson
2017년 1월 30일
You can put a breakpoint in the first executable line. After that you can use the Step and Step in buttons. You can see who called this routine using dbstack. You can switch attention between calling routines using dbup and dbdown
댓글 수: 0
adi kul
2017년 1월 30일
편집: adi kul
2017년 1월 30일
not sure what you mean by "tracing". If you have the "code" then that should be sufficient to understand how it works. I would suggest putting "breakpoints' to see what happens till specified line it the code but that again depends on what code you have.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!