How to return output from a function in a set()?
Show older comments
I am now using Matlab GUI and have problem during accessing return values from a function which is set by set().
Situation: I set the windowMotionFcn as below
set(gcf,'WindowButtonMotionFcn',@test);
Function 'test' can return 2 variables (named as var1 and var2).But I dont know how to store them... I have searched in the Internet and could not find any way.
How should I write?
Thank you for your help and kind attention.
Accepted Answer
More Answers (0)
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!