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?

Answers (1)

Jan
Jan on 16 Oct 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.

Categories

Find more on Debugging and Improving Code in Help Center and File Exchange

Tags

Asked:

on 16 Oct 2018

Answered:

Jan
on 16 Oct 2018

Community Treasure Hunt

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

Start Hunting!