function varargout = ctrllab_foc(varargin)
% CTRLLAB_FOC M-file for ctrllab_foc.fig
% CTRLLAB_FOC, by itself, creates a new CTRLLAB_FOC or raises the existing
% singleton*.
%
% H = CTRLLAB_FOC returns the handle to a new CTRLLAB_FOC or the handle to
% the existing singleton*.
%
% CTRLLAB_FOC('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in CTRLLAB_FOC.M with the given input arguments.
%
% CTRLLAB_FOC('Property','Value',...) creates a new CTRLLAB_FOC or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before ctrllab_foc_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to ctrllab_foc_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help ctrllab_foc
% Last Modified by GUIDE v2.5 13-Mar-2008 20:27:24
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @ctrllab_foc_OpeningFcn, ...
'gui_OutputFcn', @ctrllab_foc_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before ctrllab_foc is made visible.
function ctrllab_foc_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to ctrllab_foc (see VARARGIN)
% Choose default command line output for ctrllab_foc
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes ctrllab_foc wait for user response (see UIRESUME)
% uiwait(handles.ctrllab_foc);
ctrllab_foc_funs(6,handles,[]);
% --- Outputs from this function are returned to the command line.
function varargout = ctrllab_foc_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
% --------------------------------------------------------------------
function menu_file_Callback(hObject, eventdata, handles)
% hObject handle to menu_file (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function menu_model_Callback(hObject, eventdata, handles)
% hObject handle to menu_model (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function menu_analysis_Callback(hObject, eventdata, handles)
% hObject handle to menu_analysis (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function menu_design_Callback(hObject, eventdata, handles)
% hObject handle to menu_design (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function Help_Callback(hObject, eventdata, handles)
% hObject handle to Help (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function menu_new_Callback(hObject, eventdata, handles)
% hObject handle to menu_new (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
ctrllab_foc_funs(1,handles,1);
% --------------------------------------------------------------------
function menu_open_Callback(hObject, eventdata, handles)
% hObject handle to menu_open (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
ctrllab_foc_funs(1,handles,2);
% --------------------------------------------------------------------
function menu_save_Callback(hObject, eventdata, handles)
% hObject handle to menu_save (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
ctrllab_foc_funs(1,handles,3);
% --------------------------------------------------------------------
function menu_saveas_Callback(hObject, eventdata, handles)
% hObject handle to menu_saveas (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
ctrllab_foc_funs(1,handles,4);
% --------------------------------------------------------------------
function menu_exit_Callback(hObject, eventdata, handles)
% hObject handle to menu_exit (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
ctrllab_foc_funs(1,handles,5);
% --------------------------------------------------------------------
function menu_frequencyDomain_Callback(hObject, eventdata, handles)
% hObject handle to menu_frequencyDomain (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function menu_timeDomain_Callback(hObject, eventdata, handles)
% hObject handle to menu_timeDomain (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function menu_modelInput_Callback(hObject, eventdata, handles)
% hObject handle to menu_modelInput (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function menu_modelDisplay_Callback(hObject, eventdata, handles)
% hObject handle to menu_modelDisplay (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function menu_modelDisplay_Gc_Callback(hObject, eventdata, handles)
% hObject handle to menu_modelDisplay_Gc (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
ctrllab_foc_funs(2,handles,[2,1]);
% --------------------------------------------------------------------
function menu_modelDisplay_G_Callback(hObject, eventdata, handles)
% hObject handle to menu_modelDisplay_G (see GCBO)
% eventdata reserved - to be defined in a fut