addcallback

version 1.0.0.0 (7.03 KB) by Almar Klein
Add a function handle to a callback list. All functions in the list are run when the callback execut

666 Downloads

Updated 4 Jan 2008

No License

Has the same functionality as IPTADDCALLBACK, but more:
- does not need image processing toolkit
- easier removal of callback functions
- allows passing arguments to the callback functions
- clean & transparant: contains the function LISTCALLBACK to view all callback functions

ADDCALLBACK( H, CALLBACK, FUNC_HANDLE )
adds the function handle FUNC_HANDLE to the list of functions to be called when the callback specified by CALLBACK executes.

REMOVECALLBACK( H, CALLBACK, FUNC_HANDLE )
removes all callback functions (for the specified callback) that have the specified function handle.

For compatibility, one can also use:
REMOVECALLBACK( H, CALLBACK, ID )

LISTCALLBACK
Gives the complete lists of all callback functions, sorted by object and callback.

Cite As

Almar Klein (2022). addcallback (https://www.mathworks.com/matlabcentral/fileexchange/18216-addcallback), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!