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?

回答(1 个)

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

类别

在 帮助中心 和 File Exchange 中查找有关 Debugging and Improving Code 的更多信息

标签

提问:

2018-10-16

回答:

Jan
2018-10-16

Community Treasure Hunt

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

Start Hunting!

Translated by