I am coding my own gui. I could not understand how to get the control I wanted from guide. In my coding: I think I declared a global variable (such as myvar) and gave it an initial value. I started a script and declared a variable, then moved to a function file.
I changed the value via a callback from one uicontrol. The value for the variable changes in the workspace. I use a pushbutton gui to save the information, 'Callback', {@gsave, myvar} but the function gsave(hObject, eventdata, myvar) grabs the initial value of myvar and not the latest. How do I refresh the definition? (Thanks for any input.)
Best Answer