Prev: Simulink FFT
Next: curve fitting with nlinfit
From: pedro moreno on 27 Jul 2010 02:30 Yes, thanks Walter, the solution is: GUI_1: function pushbutton_Callback(hObject, eventdata, handles) gui2; %it returns GUI_2 waitfor(gui2); load('acept_cancel.mat'); if b_Acept set(handles.pushbutton2,'BackgroundColor',[0 1 0]); %green colour %else, it keeps the default grey colour end GUI_2: function pushbutton1_Callback(hObject, eventdata, handles) %Button ACEPT b_Acept= true; save('acept_cancel.mat',b_Acept); close; function pushbutton2_Callback(hObject, eventdata, handles) %Button CANCEL b_Acept= false; save('acept_cancel.mat',b_Acept); close; It works, but a tiny cons is... it looks like the GUI_2 shakes a little at the begining...
|
Pages: 1 Prev: Simulink FFT Next: curve fitting with nlinfit |