Matlab GUIDE GUI Handles change in values after using Load() function? -


inside gui have made using guide in matlab. run problem upon using load() function load .mat file handles change values. means if had button wanted use on gui. program believe handle example

 handles.button1 =190.082 

when in reality way can access button more through different handle unknown. if unknown lets see new handle must be.

findobj('tag','button1') = 227.0093 

as can see these numbers different. why handles values changed beyond me. since handles change can no longer use set() function have written in previous sections of code. example have change

set(handles.button1, 'enable', 'off');    set(findobj('tag','button1'),'enable','off'); 

does have explanation why problem occurs when using load()? there feasible solution instead of having find handle object every time want use it?

the .mat file conveniently had handles variable in overwrote current handles.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -