how to trace matlab code? and how to backtrack?
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have matlab code of firefly algorithm and i want to trace so as to understand it. Pls can anyone help me?
0 commentaires
Réponses (2)
Walter Roberson
le 30 Jan 2017
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 commentaires
adi kul
le 30 Jan 2017
Modifié(e) : adi kul
le 30 Jan 2017
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 commentaires
Voir également
Catégories
En savoir plus sur Debugging and Analysis dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!