Break a code in intermediate function
Mostrar comentarios más antiguos
Hi, I am trying to break a code in an intermediate function of the whole procedure I am running. For example, I run "my_script.m" which calls an intermediate function "my_function.m". I would like to break/pause the code at line 15 of "my_function.m". It is basic programming feature, but (surprsingly) couldnt do it or find quick instructions in the internet. I am grateful for any help. Thanks.
Respuesta aceptada
Más respuestas (1)
Sean de Wolski
el 24 de En. de 2015
Editada: Sean de Wolski
el 26 de En. de 2015
>>dbstop in my_function at 15
Or click the - next to the line number in the editor. Doc:
>>web(fullfile(docroot, 'matlab/matlab_prog/debugging-process-and-features.html'))
3 comentarios
Marcelo Sena
el 24 de En. de 2015
Marcelo Sena
el 24 de En. de 2015
Sean de Wolski
el 26 de En. de 2015
Just run the above at the command line.
Categorías
Más información sobre Debugging and Analysis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!