how to trace matlab code? and how to backtrack?

I have matlab code of firefly algorithm and i want to trace so as to understand it. Pls can anyone help me?

Respuestas (2)

Walter Roberson
Walter Roberson el 30 de En. de 2017

1 voto

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
adi kul
adi kul el 30 de En. de 2017
Editada: adi kul el 30 de En. de 2017

0 votos

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.

Categorías

Más información sobre Debugging and Analysis en Centro de ayuda y File Exchange.

Preguntada:

el 30 de En. de 2017

Respondida:

el 30 de En. de 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by