PAUSING on function call - matlab

5 visualizaciones (últimos 30 días)
Rand Dannenberg
Rand Dannenberg el 10 de Nov. de 2020
Comentada: Rand Dannenberg el 12 de Nov. de 2020
I have a main matlab script that call functions, that call other functions, etc., etc. about 1000 functions in all.
I did not write it, but I would like Matlab to pause whenever a new function is called, and tell me the name of the function.
My objective is to develop a tree-diagram of all of the functions.
Is there a setting in the debugger, or preferences, anyway to do this automatically?
  4 comentarios
Rand Dannenberg
Rand Dannenberg el 10 de Nov. de 2020
I have all the matlab scripts and functions as .m files, over 1000 of them...
I am just hoping I do not have to manually go into all the .m files looking for the call, and hope it can be set up to PAUSE on the call of any function.
Rand Dannenberg
Rand Dannenberg el 10 de Nov. de 2020
Rik - thanks, where can I read about the dependency analyzer and profiler?

Iniciar sesión para comentar.

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 10 de Nov. de 2020
Editada: Fangjun Jiang el 10 de Nov. de 2020
The call of another function might be dependent on a particular condition inside this function. So it is not ideal or practical to watch/debug the actual execution of the M script in one case or a few cases to get the information.
What you are looking for is probably this.
  6 comentarios
Rand Dannenberg
Rand Dannenberg el 12 de Nov. de 2020
ok, will do. thanks. I gathered it is not the same thing as folder. somehow the project editor is launched and folders and files get put into it which then get analyzed and a tree diagram gets displayed. I will study that and if stuck, write again.
really appreaciate the help!
Rand Dannenberg
Rand Dannenberg el 12 de Nov. de 2020
I got this working. You guys were incredibly helpful. Thank you! Exactly what I needed.

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by