how to trace matlab code? and how to backtrack?
5 ビュー (過去 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 で Debugging and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!