2. To use pushbutton RUN to call and run the .m file
function run_Callback(hObject, eventdata, handles)
open('DCServo_FOPITuning.m')
run('DCServo_FOPITuning.m')
assignin('base','y1',y1)
assignin('base','Kp',Kp)
assignin('base','Ki',Ki)
assignin('base','lemda',lemda)
assignin('base','w90',w90)
3. To display the values after opening the GUI AGAIN.
function out_Callback(hObject, eventdata, handles)
A = evalin('base','Kp');
set(handles.Kp,'string',A);
B = evalin('base','Ki');
set(handles.Ki,'string',B);
C = evalin('base','lemda');
set(handles.lemda,'string',C);
D = evalin('base','w90');
set(handles.w90,'string',D);
4. To save the input names to workspace to .m file to use from
% --- Executes on button press in Tbrkth.
function Tbrkth_Callback(hObject, eventdata, handles)
k = str2double(get(handles.k,'String'));
tau = str2double(get(handles.tau,'String'));
theta= str2double(get(handles.theta,'String'));
ms = str2double(get(handles.cv,'String'));
level = str2double(get(handles.level,'String'));
%Calculate Tbrkth and set answer to static text box Tbrkth
Tbrkth = ('Saved');
set(handles.Tbrkth,'String',Tbrkth);
%Save Tbrkth and other variables to workspace
assignin('base', 'k', k);
assignin('base', 'tau', tau);
assignin('base', 'theta', theta);
assignin('base', 'ms', ms);
assignin('base', 'level', level);
save('parameters.mat','k','tau','theta','ms','level','Tbrkth');
Please help!!! urgent.. thnk you