MATLAB: Pass variable from one callback to another

guiguidevariable

Hey guys, I wanted to know how to pass the value of a variable from one callback function to another withing the same GUI. Thanks.

Best Answer

This topic has been discussed very frequently, such that searching will be useful:
You will find many suggestions concerning the commands setappdata and guidata, which both store the variables locally in the GUI.