avilableFcn = {@resultCallback, stim, targetNoNull}

result is a function, stim and target are knowned variable. I want to ask :how to call the function result and set breakpoint into this function?

Respuestas (1)

Jan
Jan el 16 de Oct. de 2018

0 votos

It depends on where the function is stored. Is it an extra M-file or contained in the M-file created by GUIDE? Usually you do not call this function manually, but the figure calls the callbacks internally, when the corresponding GUI element is activated, e.g. a button is clicked.
Setting a breakpoint should be easy: Open the function in the editor and click on the bar on the left. See documentation: debugger . You can do this programmatically also by doc dbstop.

Categorías

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

Etiquetas

Preguntada:

el 16 de Oct. de 2018

Respondida:

Jan
el 16 de Oct. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by