How to save a callback function
3 views (last 30 days)
I need to save a datacursormode callback function, as a local variable (at least the syntax) . The argument of this function is my object
I am updating an object and then passing the saved function and the updated object in my datacusrormode UpdateFcn.
How to do it ? I tried the func2str and str2func without success.