handles - Matlab GUI Attempt to reference field of non-structure array -
i have gui menu on matlab 4 buttons (menu.fig). have 4 .fig file want open when click on buttons. here it's ok, when open .fig menu , insert value plot error:
???? attempt reference field of non-structure array.
if try open 1.fig directly, works perfectly.
i read problem eval(), can't solve it.
i changed variable names on each .fig file
one 1.fig:
function pbutton1_callback(hobject, eventdata, handles) a1=get(handles.edtsamp,'string'); f1=get(handles.edtsfreq, 'string'); fi1=get(handles.edtsfase, 'string'); t1=get(handles.poptipo, 'value'); a1=str2double(a1); f1=str2double(f1); fi=str2double(fi1); sinalsinusoidal(a1,f1,fi,t1);
i got error on 1st line.
i guess matlab gui not handled well. know used work, when tweaking ui or ui related code bit , accidentally modified area matlab told not touch, kind of issue begin happen.
the workaournd start gui m editor clicking run
i know works, originally, when directly lauch , works too. so, not end of it, people not getting end of it.
Comments
Post a Comment