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?

Risposte (1)

Jan
Jan il 16 Ott 2018
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.

Categorie

Scopri di più su Debugging and Improving Code in Centro assistenza e File Exchange

Tag

Richiesto:

il 16 Ott 2018

Risposto:

Jan
il 16 Ott 2018

Community Treasure Hunt

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

Start Hunting!

Translated by