You are on page 1of 73

danamic

function varargout = Dynamicgui(varargin) % DYNAMICGUI M-file for Dynamicgui.fig % DYNAMICGUI, by itself, creates a new DYNAMICGUI or raises the existing % singleton*. % % H = DYNAMICGUI returns the handle to a new DYNAMICGUI or the handle to % the existing singleton*. % % DYNAMICGUI('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in DYNAMICGUI.M with the given input arguments. % % DYNAMICGUI('Property','Value',...) creates a new DYNAMICGUI or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before Dynamicgui_OpeningFcn gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to Dynamicgui_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 Dynamicgui % Last Modified by GUIDE v2.5 21-Oct-2012 06:35:10

% Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @Dynamicgui_OpeningFcn, ... 'gui_OutputFcn', @Dynamicgui_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 Dynamicgui is made visible. function Dynamicgui_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 Dynamicgui (see VARARGIN) % Choose default command line output for Dynamicgui handles.output = hObject; % Update handles structure guidata(hObject, handles); % UIWAIT makes Dynamicgui wait for user response (see UIRESUME) % uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line. function varargout = Dynamicgui_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 edit1_Callback(hObject, eventdata, handles) % hObject handle to edit1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB

% handles

structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit1 as text % str2double(get(hObject,'String')) returns contents of edit1 as a double

% --- Executes during object creation, after setting all properties. function edit1_CreateFcn(hObject, eventdata, handles) % hObject handle to edit1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit2_Callback(hObject, eventdata, handles) % hObject handle to edit2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit2 as text % str2double(get(hObject,'String')) returns contents of edit2 as a double

% --- Executes during object creation, after setting all properties. function edit2_CreateFcn(hObject, eventdata, handles) % hObject handle to edit2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit3_Callback(hObject, eventdata, handles) % hObject handle to edit3 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit3 as text

% double

str2double(get(hObject,'String')) returns contents of edit3 as a

% --- Executes during object creation, after setting all properties. function edit3_CreateFcn(hObject, eventdata, handles) % hObject handle to edit3 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit8_Callback(hObject, eventdata, handles) % hObject handle to edit8 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit8 as text % str2double(get(hObject,'String')) returns contents of edit8 as a double

% --- Executes during object creation, after setting all properties. function edit8_CreateFcn(hObject, eventdata, handles) % hObject handle to edit8 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit9_Callback(hObject, eventdata, handles) % hObject handle to edit9 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit9 as text % str2double(get(hObject,'String')) returns contents of edit9 as a double

% --- Executes during object creation, after setting all properties. function edit9_CreateFcn(hObject, eventdata, handles) % hObject handle to edit9 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit10_Callback(hObject, eventdata, handles) % hObject handle to edit10 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit10 as text % str2double(get(hObject,'String')) returns contents of edit10 as a double

% --- Executes during object creation, after setting all properties. function edit10_CreateFcn(hObject, eventdata, handles) % hObject handle to edit10 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit11_Callback(hObject, eventdata, handles) % hObject handle to edit11 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit11 as text % str2double(get(hObject,'String')) returns contents of edit11 as a double

% --- Executes during object creation, after setting all properties. function edit11_CreateFcn(hObject, eventdata, handles) % hObject handle to edit11 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB

% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit12_Callback(hObject, eventdata, handles) % hObject handle to edit12 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit12 as text % str2double(get(hObject,'String')) returns contents of edit12 as a double

% --- Executes during object creation, after setting all properties. function edit12_CreateFcn(hObject, eventdata, handles) % hObject handle to edit12 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit13_Callback(hObject, eventdata, handles) % hObject handle to edit13 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit13 as text % str2double(get(hObject,'String')) returns contents of edit13 as a double

% --- Executes during object creation, after setting all properties. function edit13_CreateFcn(hObject, eventdata, handles) % hObject handle to edit13 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit14_Callback(hObject, eventdata, handles) % hObject handle to edit14 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit14 as text % str2double(get(hObject,'String')) returns contents of edit14 as a double

% --- Executes during object creation, after setting all properties. function edit14_CreateFcn(hObject, eventdata, handles) % hObject handle to edit14 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit15_Callback(hObject, eventdata, handles) % hObject handle to edit15 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit15 as text % str2double(get(hObject,'String')) returns contents of edit15 as a double

% --- Executes during object creation, after setting all properties. function edit15_CreateFcn(hObject, eventdata, handles) % hObject handle to edit15 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit16_Callback(hObject, eventdata, handles) % hObject handle to edit16 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit16 as text % str2double(get(hObject,'String')) returns contents of edit16 as a double

% --- Executes during object creation, after setting all properties. function edit16_CreateFcn(hObject, eventdata, handles) % hObject handle to edit16 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit17_Callback(hObject, eventdata, handles) % hObject handle to edit17 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit17 as text % str2double(get(hObject,'String')) returns contents of edit17 as a double

% --- Executes during object creation, after setting all properties. function edit17_CreateFcn(hObject, eventdata, handles) % hObject handle to edit17 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit18_Callback(hObject, eventdata, handles) % hObject handle to edit18 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit18 as text % str2double(get(hObject,'String')) returns contents of edit18 as a double

% --- Executes during object creation, after setting all properties. function edit18_CreateFcn(hObject, eventdata, handles) % hObject handle to edit18 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit19_Callback(hObject, eventdata, handles) % hObject handle to edit19 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit19 as text % str2double(get(hObject,'String')) returns contents of edit19 as a double

% --- Executes during object creation, after setting all properties. function edit19_CreateFcn(hObject, eventdata, handles) % hObject handle to edit19 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit20_Callback(hObject, eventdata, handles) % hObject handle to edit20 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit20 as text % str2double(get(hObject,'String')) returns contents of edit20 as a double

% --- Executes during object creation, after setting all properties. function edit20_CreateFcn(hObject, eventdata, handles) % hObject handle to edit20 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit21_Callback(hObject, eventdata, handles) % hObject handle to edit21 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit21 as text % str2double(get(hObject,'String')) returns contents of edit21 as a double

% --- Executes during object creation, after setting all properties. function edit21_CreateFcn(hObject, eventdata, handles) % hObject handle to edit21 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit4_Callback(hObject, eventdata, handles) % hObject handle to edit4 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit4 as text % str2double(get(hObject,'String')) returns contents of edit4 as a double

% --- Executes during object creation, after setting all properties. function edit4_CreateFcn(hObject, eventdata, handles) % hObject handle to edit4 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit5_Callback(hObject, eventdata, handles) % hObject handle to edit5 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit5 as text % str2double(get(hObject,'String')) returns contents of edit5 as a double

% --- Executes during object creation, after setting all properties. function edit5_CreateFcn(hObject, eventdata, handles) % hObject handle to edit5 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit6_Callback(hObject, eventdata, handles) % hObject handle to edit6 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit6 as text % str2double(get(hObject,'String')) returns contents of edit6 as a double

% --- Executes during object creation, after setting all properties. function edit6_CreateFcn(hObject, eventdata, handles)

% hObject % eventdata % handles

handle to edit6 (see GCBO) reserved - to be defined in a future version of MATLAB empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit7_Callback(hObject, eventdata, handles) % hObject handle to edit7 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit7 as text % str2double(get(hObject,'String')) returns contents of edit7 as a double

% --- Executes during object creation, after setting all properties. function edit7_CreateFcn(hObject, eventdata, handles) % hObject handle to edit7 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on button press in radiobutton1. function radiobutton1_Callback(hObject, eventdata, handles) % hObject handle to radiobutton1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hint: get(hObject,'Value') returns toggle state of radiobutton1

function edit26_Callback(hObject, eventdata, handles) % hObject handle to edit26 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit26 as text

% double

str2double(get(hObject,'String')) returns contents of edit26 as a

% --- Executes during object creation, after setting all properties. function edit26_CreateFcn(hObject, eventdata, handles) % hObject handle to edit26 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit27_Callback(hObject, eventdata, handles) % hObject handle to edit27 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit27 as text % str2double(get(hObject,'String')) returns contents of edit27 as a double

% --- Executes during object creation, after setting all properties. function edit27_CreateFcn(hObject, eventdata, handles) % hObject handle to edit27 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit28_Callback(hObject, eventdata, handles) % hObject handle to edit28 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit28 as text % str2double(get(hObject,'String')) returns contents of edit28 as a double

% --- Executes during object creation, after setting all properties. function edit28_CreateFcn(hObject, eventdata, handles) % hObject handle to edit28 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit29_Callback(hObject, eventdata, handles) % hObject handle to edit29 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit29 as text % str2double(get(hObject,'String')) returns contents of edit29 as a double

% --- Executes during object creation, after setting all properties. function edit29_CreateFcn(hObject, eventdata, handles) % hObject handle to edit29 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit34_Callback(hObject, eventdata, handles) % hObject handle to edit34 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit34 as text % str2double(get(hObject,'String')) returns contents of edit34 as a double

% --- Executes during object creation, after setting all properties. function edit34_CreateFcn(hObject, eventdata, handles) % hObject handle to edit34 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB

% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit35_Callback(hObject, eventdata, handles) % hObject handle to edit35 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit35 as text % str2double(get(hObject,'String')) returns contents of edit35 as a double

% --- Executes during object creation, after setting all properties. function edit35_CreateFcn(hObject, eventdata, handles) % hObject handle to edit35 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit36_Callback(hObject, eventdata, handles) % hObject handle to edit36 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit36 as text % str2double(get(hObject,'String')) returns contents of edit36 as a double

% --- Executes during object creation, after setting all properties. function edit36_CreateFcn(hObject, eventdata, handles) % hObject handle to edit36 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit37_Callback(hObject, eventdata, handles) % hObject handle to edit37 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit37 as text % str2double(get(hObject,'String')) returns contents of edit37 as a double

% --- Executes during object creation, after setting all properties. function edit37_CreateFcn(hObject, eventdata, handles) % hObject handle to edit37 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit38_Callback(hObject, eventdata, handles) % hObject handle to edit38 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit38 as text % str2double(get(hObject,'String')) returns contents of edit38 as a double

% --- Executes during object creation, after setting all properties. function edit38_CreateFcn(hObject, eventdata, handles) % hObject handle to edit38 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on selection change in popupmenu1. function popupmenu1_Callback(hObject, eventdata, handles) % hObject handle to popupmenu1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: contents = cellstr(get(hObject,'String')) returns popupmenu1 contents as cell array % contents{get(hObject,'Value')} returns selected item from popupmenu1

% --- Executes during object creation, after setting all properties. function popupmenu1_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: popupmenu controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on button press in radiobutton2. function radiobutton2_Callback(hObject, eventdata, handles) % hObject handle to radiobutton2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hint: get(hObject,'Value') returns toggle state of radiobutton2

function edit30_Callback(hObject, eventdata, handles) % hObject handle to edit30 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit30 as text % str2double(get(hObject,'String')) returns contents of edit30 as a double

% --- Executes during object creation, after setting all properties. function edit30_CreateFcn(hObject, eventdata, handles) % hObject handle to edit30 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows.

% See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit31_Callback(hObject, eventdata, handles) % hObject handle to edit31 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit31 as text % str2double(get(hObject,'String')) returns contents of edit31 as a double

% --- Executes during object creation, after setting all properties. function edit31_CreateFcn(hObject, eventdata, handles) % hObject handle to edit31 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit32_Callback(hObject, eventdata, handles) % hObject handle to edit32 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit32 as text % str2double(get(hObject,'String')) returns contents of edit32 as a double

% --- Executes during object creation, after setting all properties. function edit32_CreateFcn(hObject, eventdata, handles) % hObject handle to edit32 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white');

end

function edit33_Callback(hObject, eventdata, handles) % hObject handle to edit33 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit33 as text % str2double(get(hObject,'String')) returns contents of edit33 as a double

% --- Executes during object creation, after setting all properties. function edit33_CreateFcn(hObject, eventdata, handles) % hObject handle to edit33 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on button press in radiobutton5. function radiobutton5_Callback(hObject, eventdata, handles) % hObject handle to radiobutton5 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hint: get(hObject,'Value') returns toggle state of radiobutton5

% --- Executes on button press in radiobutton6. function radiobutton6_Callback(hObject, eventdata, handles) % hObject handle to radiobutton6 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hint: get(hObject,'Value') returns toggle state of radiobutton6

function edit22_Callback(hObject, eventdata, handles) % hObject handle to edit22 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit22 as text

% double

str2double(get(hObject,'String')) returns contents of edit22 as a

% --- Executes during object creation, after setting all properties. function edit22_CreateFcn(hObject, eventdata, handles) % hObject handle to edit22 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit23_Callback(hObject, eventdata, handles) % hObject handle to edit23 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit23 as text % str2double(get(hObject,'String')) returns contents of edit23 as a double

% --- Executes during object creation, after setting all properties. function edit23_CreateFcn(hObject, eventdata, handles) % hObject handle to edit23 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit24_Callback(hObject, eventdata, handles) % hObject handle to edit24 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit24 as text % str2double(get(hObject,'String')) returns contents of edit24 as a double

% --- Executes during object creation, after setting all properties. function edit24_CreateFcn(hObject, eventdata, handles) % hObject handle to edit24 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit25_Callback(hObject, eventdata, handles) % hObject handle to edit25 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit25 as text % str2double(get(hObject,'String')) returns contents of edit25 as a double

% --- Executes during object creation, after setting all properties. function edit25_CreateFcn(hObject, eventdata, handles) % hObject handle to edit25 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on button press in radiobutton3. function radiobutton3_Callback(hObject, eventdata, handles) % hObject handle to radiobutton3 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hint: get(hObject,'Value') returns toggle state of radiobutton3

% --- Executes on button press in radiobutton4. function radiobutton4_Callback(hObject, eventdata, handles) % hObject handle to radiobutton4 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of radiobutton4

function edit39_Callback(hObject, eventdata, handles) % hObject handle to edit39 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit39 as text % str2double(get(hObject,'String')) returns contents of edit39 as a double

% --- Executes during object creation, after setting all properties. function edit39_CreateFcn(hObject, eventdata, handles) % hObject handle to edit39 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit40_Callback(hObject, eventdata, handles) % hObject handle to edit40 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit40 as text % str2double(get(hObject,'String')) returns contents of edit40 as a double

% --- Executes during object creation, after setting all properties. function edit40_CreateFcn(hObject, eventdata, handles) % hObject handle to edit40 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit41_Callback(hObject, eventdata, handles) % hObject handle to edit41 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit41 as text % str2double(get(hObject,'String')) returns contents of edit41 as a double

% --- Executes during object creation, after setting all properties. function edit41_CreateFcn(hObject, eventdata, handles) % hObject handle to edit41 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit42_Callback(hObject, eventdata, handles) % hObject handle to edit42 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit42 as text % str2double(get(hObject,'String')) returns contents of edit42 as a double

% --- Executes during object creation, after setting all properties. function edit42_CreateFcn(hObject, eventdata, handles) % hObject handle to edit42 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit43_Callback(hObject, eventdata, handles) % hObject handle to edit43 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB

% handles

structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit43 as text % str2double(get(hObject,'String')) returns contents of edit43 as a double

% --- Executes during object creation, after setting all properties. function edit43_CreateFcn(hObject, eventdata, handles) % hObject handle to edit43 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit44_Callback(hObject, eventdata, handles) % hObject handle to edit44 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit44 as text % str2double(get(hObject,'String')) returns contents of edit44 as a double

% --- Executes during object creation, after setting all properties. function edit44_CreateFcn(hObject, eventdata, handles) % hObject handle to edit44 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on button press in radiobutton7. function radiobutton7_Callback(hObject, eventdata, handles) % hObject handle to radiobutton7 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hint: get(hObject,'Value') returns toggle state of radiobutton7

% --- Executes on button press in radiobutton8. function radiobutton8_Callback(hObject, eventdata, handles) % hObject handle to radiobutton8 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hint: get(hObject,'Value') returns toggle state of radiobutton8

function edit45_Callback(hObject, eventdata, handles) % hObject handle to edit45 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit45 as text % str2double(get(hObject,'String')) returns contents of edit45 as a double

% --- Executes during object creation, after setting all properties. function edit45_CreateFcn(hObject, eventdata, handles) % hObject handle to edit45 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit46_Callback(hObject, eventdata, handles) % hObject handle to edit46 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit46 as text % str2double(get(hObject,'String')) returns contents of edit46 as a double

% --- Executes during object creation, after setting all properties. function edit46_CreateFcn(hObject, eventdata, handles) % hObject handle to edit46 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit47_Callback(hObject, eventdata, handles) % hObject handle to edit47 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit47 as text % str2double(get(hObject,'String')) returns contents of edit47 as a double

% --- Executes during object creation, after setting all properties. function edit47_CreateFcn(hObject, eventdata, handles) % hObject handle to edit47 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit48_Callback(hObject, eventdata, handles) % hObject handle to edit48 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit48 as text % str2double(get(hObject,'String')) returns contents of edit48 as a double

% --- Executes during object creation, after setting all properties. function edit48_CreateFcn(hObject, eventdata, handles) % hObject handle to edit48 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on button press in radiobutton9. function radiobutton9_Callback(hObject, eventdata, handles) % hObject handle to radiobutton9 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hint: get(hObject,'Value') returns toggle state of radiobutton9

% --- Executes on button press in radiobutton10. function radiobutton10_Callback(hObject, eventdata, handles) % hObject handle to radiobutton10 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hint: get(hObject,'Value') returns toggle state of radiobutton10

function edit49_Callback(hObject, eventdata, handles) % hObject handle to edit49 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit49 as text % str2double(get(hObject,'String')) returns contents of edit49 as a double

% --- Executes during object creation, after setting all properties. function edit49_CreateFcn(hObject, eventdata, handles) % hObject handle to edit49 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit50_Callback(hObject, eventdata, handles) % hObject handle to edit50 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit50 as text

% double

str2double(get(hObject,'String')) returns contents of edit50 as a

% --- Executes during object creation, after setting all properties. function edit50_CreateFcn(hObject, eventdata, handles) % hObject handle to edit50 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit51_Callback(hObject, eventdata, handles) % hObject handle to edit51 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit51 as text % str2double(get(hObject,'String')) returns contents of edit51 as a double

% --- Executes during object creation, after setting all properties. function edit51_CreateFcn(hObject, eventdata, handles) % hObject handle to edit51 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit52_Callback(hObject, eventdata, handles) % hObject handle to edit52 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit52 as text % str2double(get(hObject,'String')) returns contents of edit52 as a double

% --- Executes during object creation, after setting all properties. function edit52_CreateFcn(hObject, eventdata, handles) % hObject handle to edit52 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit53_Callback(hObject, eventdata, handles) % hObject handle to edit53 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit53 as text % str2double(get(hObject,'String')) returns contents of edit53 as a double

% --- Executes during object creation, after setting all properties. function edit53_CreateFcn(hObject, eventdata, handles) % hObject handle to edit53 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit54_Callback(hObject, eventdata, handles) % hObject handle to edit54 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit54 as text % str2double(get(hObject,'String')) returns contents of edit54 as a double

% --- Executes during object creation, after setting all properties. function edit54_CreateFcn(hObject, eventdata, handles) % hObject handle to edit54 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB

% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on button press in pushbutton1. function pushbutton1_Callback(hObject, eventdata, handles) % hObject handle to pushbutton1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Geometric parameters b_w = str2num(get(handles.edit21,'string')); % (m) c_w =str2num(get(handles.edit19,'string')); i_w = str2num(get(handles.edit8,'string')); %rad ct_w=str2num(get(handles.edit18,'string')); cr_w=str2num(get(handles.edit20,'string')); z_w = str2num(get(handles.edit13,'string')); z_v=str2num(get(handles.edit14,'string')); xcg_c = str2num(get(handles.edit11,'string')); xac_c = str2num(get(handles.edit12,'string')); sweep_angle=str2num(get(handles.edit10,'string')); %rad dihedral=str2num(get(handles.edit9,'string')); %rad y1 =str2num(get(handles.edit15,'string')); y2=str2num(get(handles.edit16,'string')); c_t b_t i_t l_t =str2num(get(handles.edit35,'string')); = str2num(get(handles.edit34,'string')); = str2num(get(handles.edit36,'string')); = str2num(get(handles.edit37,'string'));

c_v= str2num(get(handles.edit58,'string')); b_v= str2num(get(handles.edit26,'string')); S_v =span(c_v,b_v); l_v =str2num(get(handles.edit28,'string')); l_f = str2num(get(handles.edit39,'string')); d_f = str2num(get(handles.edit40,'string')); % (m) the maximum fuselage depth S_fs = str2num(get(handles.edit57,'string')); %w_f=2; %h_f=2

S_e = str2num(get(handles.edit38,'string')); S_r = str2num(get(handles.edit29,'string')); S_a=str2num(get(handles.edit55,'string'));

V_level= str2num(get(handles.edit2,'string'));

m = str2num(get(handles.edit1,'string'));%kg ro_o = str2num(get(handles.edit3,'string'));

% cho san trong code e=0.8; Rx=0.248; % de tinh Ix Iy Iz mot cach don gian Ry=0.338; Rz=0.393; nu_v=1; kv=1; %deltaCl_beta=0.0002 % rad-1 1 trong 3 chon lua %thay doi cau truc de thuc hien dc default and reset %str=get(handles.popupmenu1,'string'); val=get(handles.popupmenu1,'value'); switch val%str{val};%xem xet ky tu o popup la j de thuc hien ham case 2%'Maximum ordinales on upper surface' deltaCl_beta=-0.0002; case 3%'Maximum ordinales on mean surface' deltaCl_beta=0; case 4%'Maximum ordinales on lower surface' deltaCl_beta=0.0002; end % lay so naca

% chon naca trong data fid=fopen('naca vs alphao cmac Clalpha ac.txt');% nhap du lieu trong file data ra thanh cac bien datanaca=fscanf(fid,'%f'); fclose(fid); naca = datanaca(1:5:end); alphao = datanaca(2:5:end); Cmac = datanaca(3:5:end); Clalpha = datanaca(4:5:end); ac = datanaca(5:5:end); [n,m1]=size(naca);

% lay so lieu naca cho wing i=1; butt_w= get(handles.uipanel15,'SelectedObject');% xem coi chon cach nhap so naca hay la nhap cl cm alpha butt_w1 = get(butt_w,'tag'); switch butt_w1

case 'radiobutton11' % neu la nhap data thi lay so naca tra trong bien neu giong thi xuat gia tri cl cm ra naca_w=str2num(get(handles.edit59,'string')); while naca(i)~= naca_w i=i+1; end alphao_w=alphao(i)*pi/180; Cmac_w=Cmac(i); Clalpha_w=Clalpha(i)*180/pi; case 'radiobutton12' % neu la nhap cl cm thi thoi alphao_w=str2num(get(handles.edit60,'string')); Cmac_w=str2num(get(handles.edit62,'string')); Clalpha_w=str2num(get(handles.edit61,'string')); % tim naca_w % cai nay la tao tim naca nguoc lai tu cl cm alpha

fid=fopen('find naca.txt','wt'); count=0; for i=1:n if abs(alphao_w-alphao(i))<=0.15; fprintf(fid,'%.3f %.3f %.3f %.3f %.3f\n',naca(i),alphao(i),Cmac(i),Clalpha(i),ac(i)); count=count+1; else count=count; end end fclose(fid); fid=fopen('find naca.txt'); datanacaf=fscanf(fid,'%f'); nacaf = datanacaf(1:5:end); alphaof = datanacaf(2:5:end); Cmacf = datanacaf(3:5:end); Clalphaf = datanacaf(4:5:end); acf = datanacaf(5:5:end); [mf,nf]=size(nacaf); count=0; fclose(fid); fid=fopen('find naca.txt','wt'); for i=1:mf if abs(Cmac_w-Cmacf(i))<=0.005; fprintf(fid,'%.3f %.3f %.3f %.3f %.3f\n',nacaf(i),alphaof(i),Cmacf(i),Clalphaf(i),acf(i)); count=count+1; else count=count; end end fclose(fid); fid=fopen('find naca.txt'); datanacaf=fscanf(fid,'%f'); nacaf = datanacaf(1:5:end); alphaof = datanacaf(2:5:end); Cmacf = datanacaf(3:5:end);

Clalphaf = datanacaf(4:5:end); acf = datanacaf(5:5:end); [mf,nf]=size(nacaf); count=0; for i=1:mf if abs(Clalphaf(i)-Clalpha_w)<=0.0005; naca_w=nacaf(i); count=count+1; else count=count; end end end % lay so lieu naca cho htail i1=1; butt_t= get(handles.uipanel17,'SelectedObject'); butt_t1 = get(butt_t,'tag'); switch butt_t1 case 'radiobutton13' naca_t=str2num(get(handles.edit63,'string')); while naca(i1)~= naca_t i1=i1+1; end alphao_t=alphao(i1)*pi/180; Cmac_t=Cmac(i1); Clalpha_t=Clalpha(i1)*180/pi; case 'radiobutton14' alphao_t=str2num(get(handles.edit64,'string')); Cmac_t=str2num(get(handles.edit66,'string')); Clalpha_t=str2num(get(handles.edit65,'string')); %tim naca_t fid=fopen('find naca.txt','wt'); count=0; for i=1:n if abs(alphao_t-alphao(i))<=0.15; fprintf(fid,'%.3f %.3f %.3f %.3f %.3f\n',naca(i),alphao(i),Cmac(i),Clalpha(i),ac(i)); count=count+1; else count=count; end end fclose(fid); fid=fopen('find naca.txt'); datanacaf=fscanf(fid,'%f'); nacaf = datanacaf(1:5:end); alphaof = datanacaf(2:5:end); Cmacf = datanacaf(3:5:end); Clalphaf = datanacaf(4:5:end); acf = datanacaf(5:5:end); [mf,nf]=size(nacaf); count=0; fclose(fid);

fid=fopen('find naca.txt','wt'); for i=1:mf if abs(Cmac_t-Cmacf(i))<=0.005; fprintf(fid,'%.3f %.3f %.3f %.3f %.3f\n',nacaf(i),alphaof(i),Cmacf(i),Clalphaf(i),acf(i)); count=count+1; else count=count; end end fclose(fid); fid=fopen('find naca.txt'); datanacaf=fscanf(fid,'%f'); nacaf = datanacaf(1:5:end); alphaof = datanacaf(2:5:end); Cmacf = datanacaf(3:5:end); Clalphaf = datanacaf(4:5:end); acf = datanacaf(5:5:end); [mf,nf]=size(nacaf); count=0; for i=1:mf if abs(Clalphaf(i)-Clalpha_t)<=0.0005; naca_t=nacaf(i); count=count+1; else count=count; end end end

% lay so lieu naca cho vtail i2=1; butt_v= get(handles.uipanel18,'SelectedObject'); butt_v1 = get(butt_v,'tag'); switch butt_v1 case 'radiobutton15' naca_v=str2num(get(handles.edit67,'string')); while naca(i2)~= naca_v i2=i2+1; end alphao_v=alphao(i2)*pi/180; Cmac_v=Cmac(i2); Clalpha_v=Clalpha(i2)*180/pi; case 'radiobutton16' alphao_v=str2num(get(handles.edit68,'string')); Cmac_v=str2num(get(handles.edit70,'string')); Clalpha_v=str2num(get(handles.edit69,'string')); %tim naca_v fid=fopen('find naca.txt','wt'); count=0; for i=1:n if abs(alphao_v-alphao(i))<=0.15;

fprintf(fid,'%.3f %.3f %.3f %.3f %.3f\n',naca(i),alphao(i),Cmac(i),Clalpha(i),ac(i)); count=count+1; else count=count; end end fclose(fid); fid=fopen('find naca.txt'); datanacaf=fscanf(fid,'%f'); nacaf = datanacaf(1:5:end); alphaof = datanacaf(2:5:end); Cmacf = datanacaf(3:5:end); Clalphaf = datanacaf(4:5:end); acf = datanacaf(5:5:end); [mf,nf]=size(nacaf); count=0; fclose(fid); fid=fopen('find naca.txt','wt'); for i=1:mf if abs(Cmac_v-Cmacf(i))<=0.005; fprintf(fid,'%.3f %.3f %.3f %.3f %.3f\n',nacaf(i),alphaof(i),Cmacf(i),Clalphaf(i),acf(i)); count=count+1; else count=count; end end fclose(fid); fid=fopen('find naca.txt'); datanacaf=fscanf(fid,'%f'); nacaf = datanacaf(1:5:end); alphaof = datanacaf(2:5:end); Cmacf = datanacaf(3:5:end); Clalphaf = datanacaf(4:5:end); acf = datanacaf(5:5:end); [mf,nf]=size(nacaf); count=0; for i=1:mf if abs(Clalphaf(i)-Clalpha_v)<=0.0005; naca_v=nacaf(i); count=count+1; else count=count; end end end % lay thickness naca_wd=num2str(naca_w); lengthw=length(naca_wd); switch lengthw case 4 naca_w2=str2num(naca_wd(3:end))*0.01; case 5

naca_w2=str2num(naca_wd(4:end))*0.01; case 6 naca_w2=str2num(naca_wd(5:end))*0.01; case 2 naca_w2=0.12; case 1 if naca_w ==6 naca_w2=0.06; else naca_w2=0.09; end end naca_td=num2str(naca_t); lengtht=length(naca_td); switch lengtht case 4 naca_t2=str2num(naca_td(3:end))*0.01; case 5 naca_t2=str2num(naca_td(4:end))*0.01; case 6 naca_t2=str2num(naca_td(5:end))*0.01; case 2 naca_t2=0.12; case 1 if naca_t ==6 naca_t2=0.06; else naca_t2=0.09; end end

naca_vd=num2str(naca_v); lengthv=length(naca_vd); switch lengtht case 4 naca_v2=str2num(naca_vd(3:end))*0.01; case 5 naca_v2=str2num(naca_vd(4:end))*0.01; case 6 naca_v2=str2num(naca_vd(5:end))*0.01; case 2 naca_v2=0.12; case 1 if naca_v ==6 naca_v2=0.06; else naca_v2=0.09; end end

%%Static longitudinal stability

% Wing contribution S_w =span(c_w,b_w); AR_w = AR(b_w,S_w); CLalpha_w = CLalpha(Clalpha_w,AR_w); CLo_w=CLalpha_w*abs(alphao_w); Cmo_w = Cmac_w + CLo_w*(xcg_c - xac_c); Cmalpha_w = CLalpha_w*(xcg_c - xac_c);

% Tail contribution S_t =span(c_t,b_t); AR_t = AR(b_t,S_t); V_H = l_t*S_t/(S_w*c_w); % Horizontal tail volume ratio 48 CLalpha_t = CLalpha(Clalpha_t,AR_t); epsilon_o = 2*CLo_w/(pi*AR_w); % Downwash at zero attack 48 d_epsilon_alpha = 2*CLalpha_w/(pi()*AR_w) ; % 48 nu_t=1; Cmo_t = nu_t*V_H*CLalpha_t*(epsilon_o + i_w - i_t);% nu =1 Cmalpha_t = -nu_t*V_H*CLalpha_t*(1 - d_epsilon_alpha);% nu=1

% Fuselage contribution --> 0 Cmo_f = 0; Cmalpha_f = 0; %end Cmo = Cmo_w + Cmo_t + Cmo_f; Cmalpha = Cmalpha_w + Cmalpha_t + Cmalpha_f;

% Longitudinal control S_e_S_t = S_e/S_t; fid=fopen('To vs Control surface area with lifting surface area.txt');% tim To_e tu data dataTo=fscanf(fid,'%f %f ',[4,inf]); fclose(fid); s_s = dataTo(1:2:end); To=dataTo(2:2:end); j1=1; while abs(s_s(j1)-S_e_S_t)>0.025 j1=j1+1; end To_e=To(j1); %end CL_delta_e = S_t*CLalpha_t*To_e/S_w;% hieu suat=1

%%Directional stability

% Wing and fuselage k_n = 0.001*180/pi(); % (1/rad) thieu data 2ci k trang 75 k_Rl = 0.002*V_level*l_f/14.6+0.98;% tu do thi suy ra ham luon Cn_beta_wf = -k_n*k_Rl*S_fs*l_f/(S_w*b_w);% (1/rad)

% vertical tail nu_v_xicma_beta = 0.724 + 3.06*S_v/(S_w*(1 + cos(sweep_angle*pi()/180))) + 0.4*z_w/d_f +0.009*AR_w; V_v = l_v*S_v/(S_w*b_w);% trang 76 vertical tail volume ratio AR_v = AR(b_v,c_v); CLalpha_v = CLalpha(Clalpha_v,AR_v); Cn_beta_v = nu_v*V_v*CLalpha_v*nu_v_xicma_beta; % end Cn_beta = Cn_beta_wf + Cn_beta_v; % Rudder control S_r_S_v = S_r/S_v; j2=1; while abs(s_s(j2)-S_r_S_v)>0.025% tim To_r tu data j2=j2+1; end To_r=To(j2); Cn_delta_r = -nu_v*V_v*CLalpha_v*To_r;

%%Roll stability % Wing fid=fopen('Clbeta vs AR (lamda 0 05 1).txt');% tim Clbeta_dihedral theo data dataClbeta=fscanf(fid,'%f %f ',[4,inf]); fclose(fid); ARdata = dataClbeta(1:4:end); Clbeta_dihedral0=dataClbeta(2:4:end); Clbeta_dihedral05=dataClbeta(3:4:end); Clbeta_dihedral1=dataClbeta(4:4:end); if AR_w <=5 j4=1; if AR_w > 5 && AR_w <= 7 j4=2; else

j4=3; end end

if (ct_w/cr_w)<0.25 Clbeta_dihedral=Clbeta_dihedral0(j4); else if (ct_w/cr_w)>=0.25 && (ct_w/cr_w)<0.75 Clbeta_dihedral=Clbeta_dihedral05(j4); else if (ct_w/cr_w)>=0.75 && (ct_w/cr_w)<1 Clbeta_dihedral=Clbeta_dihedra11(j4); else Clbeta_dihedral=0; end end end

Cl_beta_w=Clbeta_dihedral*dihedral+deltaCl_beta;

% Tail k_v=1; Cl_beta_v=-kv*CLalpha_v*S_v/S_w*nu_v_xicma_beta;% cho kv=1 %end Cl_beta=Cl_beta_w+Cl_beta_v;

% Aileron control

S_a_S_w = S_a/S_w; j3=1; while abs(s_s(j3)-S_a_S_w)>0.025% tim To_a tu data j3=j3+1; end To_a=To(j3); if cr_w == ct_w Cl_delta_a = -2*CLalpha_w*To_a*c_w*(y2^2/2 - y1^2/2)/(S_w*b_w); else Cl_delta_a = -2*CLalpha_w*To_a*c_w*(y2^2/2 - y1^2/2 + (ct_w/cr_w1)*2/b_w/3*(y2^3-y1^3))/(S_w*b_w); end %Parasite drag % wing Re_w = V_level*c_w/(1.46072*10^(-5));% reynolt

C_fw = 0.455/((log10(Re_w))^2.58);% cf S_wetw = S_w*2*1.02; % Swet K_pw = 1+2.7*naca_w2+100*(naca_w2^4); % 0.15 = t/c thickness ratio of the wing airfoil C_dpw = K_pw*1*C_fw*S_wetw/S_w; % fuselage Re_f = V_level*l_f/(1.46072*10^(-5)); C_ff = 0.455/((log10(Re_f))^2.58); lamda_f = l_f/d_f; S_wetf = pi()*d_f*l_f*((1-2/lamda_f)^(2/3))*(1+1/lamda_f^2); K_pf = 1 + 60/lamda_f^3 +lamda_f/400; C_dpf = K_pf*1*C_ff*S_wetf/S_w;

% tail

Re_t = V_level*c_t/(1.46072*10^(-5)); C_ft = 0.455/((log10(Re_t))^2.58); S_wett = S_t*2*1.02; K_pt = 1+2.7*naca_t2+100*(naca_t2^4); % 0.15 = t/c thickness ratio of the wing airfoil C_dpt = K_pt*1*C_ft*S_wett/S_w; % fin Re_v = V_level*c_v/(1.46072*10^(-5)); C_fv = 0.455/((log10(Re_v))^2.58); S_wetv = S_v*2*1.02; K_pv = 1+2.7*naca_v2+100*(naca_v2^4); % 0.15 = t/c thickness ratio of the wing airfoil C_dpv = K_pv*1*C_fv*S_wetv/S_w;

%end C_dpwftvn = C_dpw + C_dpt + C_dpf + C_dpv; C_dmisc = 0.1*C_dpwftvn; % drag theo atmosphere %end C_Dp = C_dpwftvn + C_dmisc; % Drag parasitic coefficient

CLo = CLo_w + 1*S_t*CLalpha_t*(i_t - i_w - epsilon_o)/S_w; CLalphaz = CLalpha_w + 1*S_t*CLalpha_t*(1 - d_epsilon_alpha)/S_w;

CL_level = 2*m*9.806/(ro_o*V_level^2*S_w); alpha_level = ((CL_level - CLo)/CLalphaz)*(180/pi()); C_Lv_lev = 0; C_Lt_lev = S_t*CLalpha_t*(i_t - i_w - epsilon_o)/S_w + alpha_level*(pi/180)*S_t*CLalpha_t*(1 - d_epsilon_alpha)/S_w; C_Lw_lev = CLo + CLalphaz*alpha_level*(pi()/180); K_w = 1/(pi*AR_w*e); K_t = 1 *S_t/(S_w*pi*AR_t*e); K_v = 1*S_v/(S_w*pi*AR_v*e); C_D = C_Dp + C_Lw_lev^2*K_w + C_Lt_lev^2*K_t + C_Lv_lev^2*K_v; C_Di = K_w + (C_Lt_lev/C_Lw_lev)^2*K_t + (C_Lv_lev/C_Lw_lev)^2*K_v; % Induced drag coefficient Cd_lev = C_D; D_level = 0.5*ro_o*V_level^2*S_w*Cd_lev; %The longitudinal stability derivative coefficients Q = 1/2*ro_o*V_level^2; u_o = V_level; Cl_0 = CL_level ; Cd_0 = Cd_lev; Cd_alpha = 2*C_Di*CLalphaz*(CLo + CLalphaz*alpha_level*(pi()/180)); % ko thay xai Cmo = Cmo_w + Cmo_t + Cmo_f; Cmalpha = Cmalpha_w + Cmalpha_t + Cmalpha_f;

%bat dau thu tu y chang trong sach 116 Cx_u = -3*Cd_0; Cx_alpha = Cl_0 - 2*Cl_0*CLalphaz/(pi*e*AR_w); Cz_u = -2*Cl_0; Cz_alpha = -(CLalphaz + Cd_0); Cz_alpha_cham = -2*CLalpha_t*nu_t*V_H*d_epsilon_alpha; Cz_q = -2*nu_t*CLalpha_t*V_H; Cz_delta_e = -S_t/S_w*nu_t*CLalpha_t*To_e;

Cm_u = 0; Cmo = Cmo_w + Cmo_t + Cmo_f;%du Cmalpha = Cmalpha_w + Cmalpha_t + Cmalpha_f; Cmalpha_cham = -2*nu_t*CLalpha_t*V_H*l_t*d_epsilon_alpha/c_w; Cmq = -2*nu_t*CLalpha_t*V_H*l_t/c_w; Cm_delta_e = -nu_t*V_H*CLalpha_t*To_e; %trang 123 X_u = Cx_u*(1/u_o)*(Q*S_w/m); X_alpha = Cx_alpha*(Q*S_w/m); % du ma lay thay cho X_w X_w = -(Cd_alpha-Cl_0)*Q*S_w/(u_o*m);% thua cai then Cd_alpha Z_u = Cz_u*(1/u_o)*(Q*S_w/m); Z_w = -(CLalphaz + Cd_0)*Q*S_w/(u_o*m); Z_w_cham = -Cz_alpha_cham*c_w*Q*S_w/(2*u_o); Z_alpha =Cz_alpha* (Q*S_w/m); Z_alpha_cham = Cmalpha_cham*(c_w/(2*u_o))*(Q*S_w/m); Z_q = Cz_q*(c_w/(2*u_o))*(Q*S_w/m); Z_delta_e = Cz_delta_e*(Q*S_w/m);

I_x=b_w^2*m*Rx/4; I_y=l_f^2*m*Ry/4; I_z=(b_w+l_f)^2*m*Rz/16;

M_u = Cm_u*(1/u_o)*(Q*S_w*c_w/I_y); M_w = Cmalpha*Q*S_w*c_w/(u_o*I_y); M_w_cham = Cmalpha_cham*c_w*Q*S_w*c_w/(2*u_o^2*I_y); M_alpha = Cmalpha*(Q*S_w*c_w/I_y); M_alpha_cham = Cmalpha_cham*(c_w/(2*u_o))*(Q*S_w*c_w/I_y); M_q = Cmq*(c_w/(2*u_o))*(Q*S_w*c_w/I_y); M_delta_e = Cm_delta_e*(Q*S_w*c_w/I_y); %The lateral stability derivative coefficients %bat dau y chang sach 121 C_y_beta = -nu_v_xicma_beta*(S_v/S_w)*CLalpha_v; C_y_p = CL_level*(AR_w+cos(sweep_angle))*tan(sweep_angle)/(AR_w+4*cos(sweep_angle)); C_y_beta_tail = -nu_v*(S_v/S_w)*CLalpha_v; % du tinh cho cai o duoi C_y_r = -2*(l_v/b_w)*C_y_beta_tail; C_y_delta_r = (S_v/S_w)*CLalpha_v*To_r; Cn_beta = Cn_beta_wf + Cn_beta_v; C_n_p = -CL_level/8; C_n_r = -2*nu_v*V_v*(l_v/b_w)*CLalpha_v; fid=fopen('kCn_delta_a 4 6 8.txt');% tim To_e tu data kCn=fscanf(fid,'%f %f ',[4,inf]);

fclose(fid); nudata=kCn(1:4:end); kCn4=kCn(2:4:end); kCn6=kCn(3:4:end); kCn8=kCn(4:4:end); j5=1; while abs(nudata(j5)-(y1*2/b_w))>0.125 j5=j5+1; end if AR_w<5 k=kCn4(j5); else if AR_w >=5 && AR_w<7 k=kCn6(j5); else k=kCn8(j5); end end Cn_delta_a=2*CLo*Cl_delta_a*k;% he so tra data trang 122 3.12 C_n_delta_r = -nu_v*V_v*To_r*CLalpha_v; Cl_beta=Cl_beta_w+Cl_beta_v; C_l_p = -(CLalphaz/12)*(1+3*(ct_w/cr_w))/(1+(ct_w/cr_w)); C_l_r = CL_level/4 - 2*l_v*z_v*C_y_beta_tail/(b_w^2); Cl_delta_a; C_l_delta_r = (S_v/S_w)*(z_v/b_w)*To_r*CLalpha_w; %trang 123 Y_beta = C_y_beta*(Q*S_w/m); Y_p = C_y_p*(b_w/(2*u_o))*(Q*S_w/m); Y_r = C_y_r*(b_w/(2*u_o))*(Q*S_w/m); Y_delta_r = C_n_delta_r*(Q*S_w/m);

N_beta = Cn_beta*Q*S_w*b_w/I_z; N_p = C_n_p*Q*S_w*b_w^2/(2*I_x*u_o); N_r = C_n_r*Q*S_w*b_w^2/(2*I_x*u_o); N_delta_a = Cn_delta_a*Q*S_w*b_w/I_z; N_delta_r = C_n_delta_r*Q*S_w*b_w/I_z; L_beta = Cl_beta*Q*S_w*b_w/I_x; L_p = C_l_p*Q*S_w*b_w^2/(2*I_x*u_o); L_r = C_l_r*Q*S_w*b_w^2/(2*I_x*u_o); L_delta_a = Cl_delta_a *Q*S_w*b_w/I_x; L_delta_r = C_l_delta_r*Q*S_w*b_w/I_x; X_delta_t=Cd_0*Q*S_w; set(handles.edit83,'string',num2str(Cx_u)); set(handles.edit84,'string',num2str(Cx_alpha));

set(handles.edit85,'string',num2str(Cz_u)); set(handles.edit86,'string',num2str(Cz_alpha)); set(handles.edit87,'string',num2str(Cz_alpha_cham)); set(handles.edit88,'string',num2str(Cz_q)); set(handles.edit89,'string',num2str(Cz_delta_e)); set(handles.edit90,'string',num2str(Cm_u)); set(handles.edit91,'string',num2str(Cmalpha)); set(handles.edit92,'string',num2str(Cmalpha_cham)); set(handles.edit93,'string',num2str(Cmq)); set(handles.edit94,'string',num2str(Cm_delta_e)); set(handles.edit95,'string',num2str(C_y_beta)); set(handles.edit96,'string',num2str(C_y_p)); set(handles.edit97,'string',num2str(C_y_r)); set(handles.edit98,'string',num2str(C_y_delta_r)); set(handles.edit99,'string',num2str(Cn_beta)); set(handles.edit100,'string',num2str(C_n_p)); set(handles.edit101,'string',num2str(C_n_r)); set(handles.edit102,'string',num2str(Cn_delta_a)); set(handles.edit103,'string',num2str(C_n_delta_r)); set(handles.edit104,'string',num2str(Cl_beta)); set(handles.edit105,'string',num2str(C_l_p)); set(handles.edit106,'string',num2str(C_l_r)); set(handles.edit107,'string',num2str(Cl_delta_a)); set(handles.edit108,'string',num2str(C_l_delta_r));

aue=[b_w c_w i_w ct_w cr_w z_w z_v xcg_c xac_c sweep_angle dihedral y1 y2... c_t b_t i_t l_t... c_v b_v l_v ... l_f d_f S_fs... S_e S_r S_a... V_level m ro_o]; fid=fopen('outputdynsame.txt','wt'); fprintf(fid,'%.3f\n',aue); switch butt_w1 case 'radiobutton11' fprintf(fid,'%.3f\n',1,naca_w,1,1);% 1 30 case 'radiobutton12' fprintf(fid,'%.3f\n',0,alphao_w,Clalpha_w,Cmac_w);%0 30 end switch butt_t1 case 'radiobutton13' fprintf(fid,'%.3f\n',1,naca_t,1,1);% 1 34 case 'radiobutton14' fprintf(fid,'%.3f\n',0,alphao_t,Clalpha_t, Cmac_t);% 0 34 end

switch butt_v1 case 'radiobutton15' fprintf(fid,'%.3f\n',1,naca_v,1,1);% 1 38 case 'radiobutton16' fprintf(fid,'%.3f\n',0,alphao_v,Clalpha_v, Cmac_v);% 0 38 end pop=get(handles.popupmenu1,'value'); fprintf(fid,'%.3f\n',pop); fclose(fid); fid=fopen('outputdynatr.txt','wt'); aue=[Cx_u, Cx_alpha,... Cz_u, Cz_alpha, Cz_alpha_cham, Cz_q, Cz_delta_e ,... Cm_u, Cmo, Cmalpha, Cmalpha_cham , Cmq , Cm_delta_e, ... X_u, X_alpha,X_w,... Z_u, Z_w, Z_w_cham, Z_alpha, Z_alpha_cham, Z_q , Z_delta_e,... M_u, M_w, M_w_cham, M_alpha, M_alpha_cham, M_q , M_delta_e,... C_y_beta, C_y_p, C_y_beta_tail, C_y_r, C_y_delta_r,... Cn_beta, C_n_p, C_n_r,Cn_delta_a, C_n_delta_r,... Cl_beta,C_l_p, C_l_r, Cl_delta_a, C_l_delta_r,... Y_beta, Y_p , Y_r , Y_delta_r,... N_beta, N_p, N_r, N_delta_a, N_delta_r,... L_beta, L_p, L_r, L_delta_a, L_delta_r,u_o,X_delta_t]; fprintf(fid,'%.3f\n',aue); fclose(fid);

% --- Executes on button press in pushbutton2. function pushbutton2_Callback(hObject, eventdata, handles) % hObject handle to pushbutton2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) close('Dynamicgui') % --- Executes on button press in pushbutton3. function pushbutton3_Callback(hObject, eventdata, handles) % hObject handle to pushbutton3 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% --- Executes on button press in pushbutton4. function pushbutton4_Callback(hObject, eventdata, handles) % hObject handle to pushbutton4 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) set(handles.edit1,'string','');

set(handles.edit2,'string',''); set(handles.edit3,'string',''); set(handles.edit59,'string',''); set(handles.edit60,'string',''); set(handles.edit61,'string',''); set(handles.edit62,'string',''); set(handles.edit8,'string',''); set(handles.edit9,'string',''); set(handles.edit10,'string',''); set(handles.edit11,'string',''); set(handles.edit12,'string',''); set(handles.edit13,'string',''); set(handles.edit14,'string',''); set(handles.edit15,'string',''); set(handles.edit16,'string',''); set(handles.edit18,'string',''); set(handles.edit19,'string',''); set(handles.edit20,'string',''); set(handles.edit21,'string',''); set(handles.edit26,'string',''); set(handles.edit28,'string',''); set(handles.edit29,'string',''); set(handles.edit34,'string',''); set(handles.edit35,'string',''); set(handles.edit36,'string',''); set(handles.edit37,'string',''); set(handles.edit38,'string',''); set(handles.edit39,'string',''); set(handles.edit40,'string',''); set(handles.edit63,'string',''); set(handles.edit64,'string',''); set(handles.edit65,'string',''); set(handles.edit66,'string',''); set(handles.edit67,'string',''); set(handles.edit68,'string',''); set(handles.edit69,'string',''); set(handles.edit70,'string',''); set(handles.edit55,'string',''); set(handles.edit57,'string',''); set(handles.edit58,'string',''); set(handles.popupmenu1,'value',1); set(handles.radiobutton11,'value',1); set(handles.radiobutton12,'value',0); set(handles.radiobutton13,'value',1); set(handles.radiobutton14,'value',0); set(handles.radiobutton15,'value',1); set(handles.radiobutton16,'value',0); set(handles.edit83,'string',''); set(handles.edit84,'string',''); set(handles.edit85,'string',''); set(handles.edit86,'string',''); set(handles.edit87,'string','');

set(handles.edit88,'string',''); set(handles.edit89,'string',''); set(handles.edit90,'string',''); set(handles.edit91,'string',''); set(handles.edit92,'string',''); set(handles.edit93,'string',''); set(handles.edit94,'string',''); set(handles.edit95,'string',''); set(handles.edit96,'string',''); set(handles.edit97,'string',''); set(handles.edit98,'string',''); set(handles.edit99,'string',''); set(handles.edit100,'string',''); set(handles.edit101,'string',''); set(handles.edit102,'string',''); set(handles.edit103,'string',''); set(handles.edit104,'string',''); set(handles.edit105,'string',''); set(handles.edit106,'string',''); set(handles.edit107,'string',''); set(handles.edit108,'string','');

% --- Executes on button press in pushbutton5. function pushbutton5_Callback(hObject, eventdata, handles) % hObject handle to pushbutton5 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) set(handles.edit1,'string','600'); set(handles.edit2,'string','60'); set(handles.edit3,'string','0.776');% h=4500 set(handles.edit59,'string','2412'); set(handles.edit60,'string',''); set(handles.edit61,'string',''); set(handles.edit62,'string',''); set(handles.edit8,'string','0.035'); set(handles.edit9,'string','0.035'); set(handles.edit10,'string','0'); set(handles.edit11,'string','0.24'); set(handles.edit12,'string','0.25'); set(handles.edit13,'string','0.63'); set(handles.edit14,'string','0.2'); set(handles.edit15,'string','2.31'); set(handles.edit16,'string','4'); set(handles.edit18,'string','1.23'); set(handles.edit19,'string','1.23'); set(handles.edit20,'string','1.23'); set(handles.edit21,'string','9.144'); set(handles.edit26,'string','1.5'); set(handles.edit28,'string','3.98'); set(handles.edit29,'string','0.48'); set(handles.edit34,'string','2.99');

set(handles.edit35,'string','0.72'); set(handles.edit36,'string','0'); set(handles.edit37,'string','3.6'); set(handles.edit38,'string','0.6'); set(handles.edit39,'string','6'); set(handles.edit40,'string','1.22'); set(handles.edit63,'string','0012'); set(handles.edit64,'string',''); set(handles.edit65,'string',''); set(handles.edit66,'string',''); set(handles.edit67,'string','0012'); set(handles.edit68,'string',''); set(handles.edit69,'string',''); set(handles.edit70,'string',''); set(handles.edit55,'string','0.7'); set(handles.edit57,'string','4.44'); set(handles.edit58,'string','0.45'); %set(handles.popupmenu1,'string','Maximum ordinales on upper surface'); set(handles.popupmenu1,'value',2);

function edit55_Callback(hObject, eventdata, handles) % hObject handle to edit55 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit55 as text % str2double(get(hObject,'String')) returns contents of edit55 as a double

% --- Executes during object creation, after setting all properties. function edit55_CreateFcn(hObject, eventdata, handles) % hObject handle to edit55 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit56_Callback(hObject, eventdata, handles) % hObject handle to edit56 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit56 as text % str2double(get(hObject,'String')) returns contents of edit56 as a double

% --- Executes during object creation, after setting all properties. function edit56_CreateFcn(hObject, eventdata, handles) % hObject handle to edit56 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit57_Callback(hObject, eventdata, handles) % hObject handle to edit57 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit57 as text % str2double(get(hObject,'String')) returns contents of edit57 as a double

% --- Executes during object creation, after setting all properties. function edit57_CreateFcn(hObject, eventdata, handles) % hObject handle to edit57 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit58_Callback(hObject, eventdata, handles) % hObject handle to edit58 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit58 as text % str2double(get(hObject,'String')) returns contents of edit58 as a double

% --- Executes during object creation, after setting all properties. function edit58_CreateFcn(hObject, eventdata, handles)

% hObject % eventdata % handles

handle to edit58 (see GCBO) reserved - to be defined in a future version of MATLAB empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit59_Callback(hObject, eventdata, handles) % hObject handle to edit59 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit59 as text % str2double(get(hObject,'String')) returns contents of edit59 as a double

% --- Executes during object creation, after setting all properties. function edit59_CreateFcn(hObject, eventdata, handles) % hObject handle to edit59 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit60_Callback(hObject, eventdata, handles) % hObject handle to edit60 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit60 as text % str2double(get(hObject,'String')) returns contents of edit60 as a double

% --- Executes during object creation, after setting all properties. function edit60_CreateFcn(hObject, eventdata, handles) % hObject handle to edit60 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit61_Callback(hObject, eventdata, handles) % hObject handle to edit61 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit61 as text % str2double(get(hObject,'String')) returns contents of edit61 as a double

% --- Executes during object creation, after setting all properties. function edit61_CreateFcn(hObject, eventdata, handles) % hObject handle to edit61 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit62_Callback(hObject, eventdata, handles) % hObject handle to edit62 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit62 as text % str2double(get(hObject,'String')) returns contents of edit62 as a double

% --- Executes during object creation, after setting all properties. function edit62_CreateFcn(hObject, eventdata, handles) % hObject handle to edit62 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

set(hObject,'BackgroundColor','white'); end

function edit63_Callback(hObject, eventdata, handles) % hObject handle to edit63 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit63 as text % str2double(get(hObject,'String')) returns contents of edit63 as a double

% --- Executes during object creation, after setting all properties. function edit63_CreateFcn(hObject, eventdata, handles) % hObject handle to edit63 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit64_Callback(hObject, eventdata, handles) % hObject handle to edit64 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit64 as text % str2double(get(hObject,'String')) returns contents of edit64 as a double

% --- Executes during object creation, after setting all properties. function edit64_CreateFcn(hObject, eventdata, handles) % hObject handle to edit64 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit65_Callback(hObject, eventdata, handles) % hObject handle to edit65 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit65 as text % str2double(get(hObject,'String')) returns contents of edit65 as a double

% --- Executes during object creation, after setting all properties. function edit65_CreateFcn(hObject, eventdata, handles) % hObject handle to edit65 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit66_Callback(hObject, eventdata, handles) % hObject handle to edit66 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit66 as text % str2double(get(hObject,'String')) returns contents of edit66 as a double

% --- Executes during object creation, after setting all properties. function edit66_CreateFcn(hObject, eventdata, handles) % hObject handle to edit66 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit67_Callback(hObject, eventdata, handles) % hObject handle to edit67 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB

% handles

structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit67 as text % str2double(get(hObject,'String')) returns contents of edit67 as a double

% --- Executes during object creation, after setting all properties. function edit67_CreateFcn(hObject, eventdata, handles) % hObject handle to edit67 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit68_Callback(hObject, eventdata, handles) % hObject handle to edit68 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit68 as text % str2double(get(hObject,'String')) returns contents of edit68 as a double

% --- Executes during object creation, after setting all properties. function edit68_CreateFcn(hObject, eventdata, handles) % hObject handle to edit68 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit69_Callback(hObject, eventdata, handles) % hObject handle to edit69 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit69 as text

% double

str2double(get(hObject,'String')) returns contents of edit69 as a

% --- Executes during object creation, after setting all properties. function edit69_CreateFcn(hObject, eventdata, handles) % hObject handle to edit69 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit70_Callback(hObject, eventdata, handles) % hObject handle to edit70 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit70 as text % str2double(get(hObject,'String')) returns contents of edit70 as a double

% --- Executes during object creation, after setting all properties. function edit70_CreateFcn(hObject, eventdata, handles) % hObject handle to edit70 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% -------------------------------------------------------------------function Untitled_1_Callback(hObject, eventdata, handles) % hObject handle to Untitled_1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% -------------------------------------------------------------------function Untitled_2_Callback(hObject, eventdata, handles) % hObject handle to Untitled_2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB

% handles

structure with handles and user data (see GUIDATA)

% -------------------------------------------------------------------function Untitled_3_Callback(hObject, eventdata, handles) % hObject handle to Untitled_3 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% -------------------------------------------------------------------function Untitled_4_Callback(hObject, eventdata, handles) % hObject handle to Untitled_4 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% -------------------------------------------------------------------function Untitled_5_Callback(hObject, eventdata, handles) % hObject handle to Untitled_5 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% -------------------------------------------------------------------function Untitled_7_Callback(hObject, eventdata, handles) % hObject handle to Untitled_7 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% -------------------------------------------------------------------function Untitled_8_Callback(hObject, eventdata, handles) % hObject handle to Untitled_8 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% -------------------------------------------------------------------function Untitled_15_Callback(hObject, eventdata, handles) % hObject handle to Untitled_15 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% -------------------------------------------------------------------function Untitled_16_Callback(hObject, eventdata, handles) % hObject handle to Untitled_16 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% -------------------------------------------------------------------function Untitled_11_Callback(hObject, eventdata, handles)

% hObject % eventdata % handles

handle to Untitled_11 (see GCBO) reserved - to be defined in a future version of MATLAB structure with handles and user data (see GUIDATA)

% -------------------------------------------------------------------function Untitled_12_Callback(hObject, eventdata, handles) % hObject handle to Untitled_12 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% -------------------------------------------------------------------function Untitled_13_Callback(hObject, eventdata, handles) % hObject handle to Untitled_13 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% -------------------------------------------------------------------function Solve_Callback(hObject, eventdata, handles) % hObject handle to Solve (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)

% --- Executes during object creation, after setting all properties. function Solve_CreateFcn(hObject, eventdata, handles) % hObject handle to Solve (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% --- Executes on button press in pushbutton6. function pushbutton6_Callback(hObject, eventdata, handles) % hObject handle to pushbutton6 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) fid=fopen('outputstatic.txt');% tim naca tu data dts=fscanf(fid,'%f',[1,inf]); fclose(fid); (set(handles.edit21,'string',dts(1))); % (m) (set(handles.edit19,'string',dts(2))); (set(handles.edit8,'string',dts(3))); (set(handles.edit18,'string',dts(4))); (set(handles.edit20,'string',dts(5)));

(set(handles.edit13,'string',dts(6))); (set(handles.edit14,'string',dts(7))); (set(handles.edit11,'string',dts(8))); (set(handles.edit12,'string',dts(9))); (set(handles.edit10,'string',dts(10))); (set(handles.edit9,'string',dts(11))); (set(handles.edit15,'string',dts(12))); (set(handles.edit16,'string',dts(13))); (set(handles.edit35,'string',dts(14))); (set(handles.edit34,'string',dts(15))); (set(handles.edit36,'string',dts(16))); (set(handles.edit37,'string',dts(17))); (set(handles.edit58,'string',dts(18))); (set(handles.edit26,'string',dts(19))); (set(handles.edit28,'string',dts(20))); (set(handles.edit39,'string',dts(21))); (set(handles.edit40,'string',dts(22))); % (m) the maximum fuselage depth (set(handles.edit57,'string',dts(23))); (set(handles.edit38,'string',dts(24))); (set(handles.edit29,'string',dts(25))); (set(handles.edit55,'string',dts(26))); (set(handles.edit2,'string',dts(27))); (set(handles.edit1,'string',dts(28)));%kg (set(handles.edit3,'string',dts(29))); if dts(30)==1; set(handles.radiobutton11,'value',1); set(handles.radiobutton12,'value',0); naca_wd=num2str(dts(31)); lengthw=length(naca_wd); switch lengthw case 4 set(handles.edit59,'string',dts(31)); case 5 set(handles.edit59,'string',dts(31)); case 6 set(handles.edit59,'string',dts(31)); case 2 set(handles.edit59,'string','0012'); case 1 if dts(31) ==6 set(handles.edit59,'string','0006'); else set(handles.edit59,'string','0009'); end end else set(handles.radiobutton11,'value',0); set(handles.radiobutton12,'value',1); set(handles.edit60,'string',dts(31)); set(handles.edit61,'string',dts(32)); set(handles.edit62,'string',dts(33));

end if dts(34)==1 set(handles.radiobutton13,'value',1); set(handles.radiobutton14,'value',0); naca_td=num2str(dts(35)); lengtht=length(naca_td); switch lengtht case 4 set(handles.edit63,'string',dts(35)); case 5 set(handles.edit63,'string',dts(35)); case 6 set(handles.edit63,'string',dts(35)); case 2 set(handles.edit63,'string','0012'); case 1 if dts(35) ==6 set(handles.edit63,'string','0006'); else set(handles.edit63,'string','0009'); end end else set(handles.radiobutton13,'value',0); set(handles.radiobutton14,'value',1); set(handles.edit64,'string',dts(35)); set(handles.edit65,'string',dts(36)); set(handles.edit66,'string',dts(37)); end if dts(38)==1 set(handles.radiobutton15,'value',1); set(handles.radiobutton16,'value',0); naca_vd=num2str(dts(39)); lengthv=length(naca_vd); switch lengthv case 4 set(handles.edit67,'string',dts(39)); case 5 set(handles.edit67,'string',dts(39)); case 6 set(handles.edit67,'string',dts(39)); case 2 set(handles.edit67,'string','0012'); case 1 if dts(39) ==6 set(handles.edit67,'string','0006'); else set(handles.edit67,'string','0009'); end end else set(handles.radiobutton15,'value',0); set(handles.radiobutton16,'value',1); set(handles.edit68,'string',dts(39)); set(handles.edit69,'string',dts(40)); set(handles.edit70,'string',dts(41)); end

set(handles.popupmenu1,'value',dts(42));

% --- Executes on selection change in listbox1. function listbox1_Callback(hObject, eventdata, handles) % hObject handle to listbox1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: contents = cellstr(get(hObject,'String')) returns listbox1 contents as cell array % contents{get(hObject,'Value')} returns selected item from listbox1

% --- Executes during object creation, after setting all properties. function listbox1_CreateFcn(hObject, eventdata, handles) % hObject handle to listbox1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: listbox controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on slider movement. function slider1_Callback(hObject, eventdata, handles) % hObject handle to slider1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'Value') returns position of slider % get(hObject,'Min') and get(hObject,'Max') to determine range of slider

% --- Executes during object creation, after setting all properties. function slider1_CreateFcn(hObject, eventdata, handles) % hObject handle to slider1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: slider controls usually have a light gray background. if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor',[.9 .9 .9]); end

% --- Executes on button press in pushbutton7. function pushbutton7_Callback(hObject, eventdata, handles)

% hObject % eventdata % handles

handle to pushbutton7 (see GCBO) reserved - to be defined in a future version of MATLAB structure with handles and user data (see GUIDATA)

fid=fopen('outputdynatr.txt'); i=fscanf(fid,'%f %f', [1,inf]); fclose(fid); [newfile,newpath] = uiputfile('Stability Coefficients and Derivatives.txt','Save'); fid=fopen([newpath,newfile],'wt'); fprintf(fid,'%s\t','Cx_u', 'Cx_alpha',... 'Cz_u', 'Cz_alpha', 'Cz_alpha_cham', 'Cz_q', 'Cz_delta_e' ,... 'Cm_u', 'Cmo', 'Cmalpha', 'Cmalpha_cham' ,' Cmq' , 'Cm_delta_e', ... 'X_u', 'X_alpha','X_w',... ' Z_u', 'Z_w', 'Z_w_cham', 'Z_alpha', 'Z_alpha_cham', 'Z_q' ,'Z_delta_e',... ' M_u',' M_w', 'M_w_cham', 'M_alpha',' M_alpha_cham', 'M_q' , 'M_delta_e',... 'C_y_beta', 'C_y_p', 'C_y_beta_tail', 'C_y_r', 'C_y_delta_r',... 'Cn_beta',' C_n_p', 'C_n_r','Cn_delta_a', 'C_n_delta_r',... 'Cl_beta','C_l_p', 'C_l_r', 'Cl_delta_a', 'C_l_delta_r',... 'Y_beta', 'Y_p ',' Y_r ', 'Y_delta_r',... ' N_beta',' N_p','N_r', 'N_delta_a', 'N_delta_r',... 'L_beta',' L_p',' L_r',' L_delta_a', 'L_delta_r','u_o','X_delta_t'); fprintf(fid,'\n'); fprintf(fid,'%.3f\t ',i); fclose(fid);

function edit95_Callback(hObject, eventdata, handles) % hObject handle to edit95 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit95 as text % str2double(get(hObject,'String')) returns contents of edit95 as a double

% --- Executes during object creation, after setting all properties. function edit95_CreateFcn(hObject, eventdata, handles) % hObject handle to edit95 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit96_Callback(hObject, eventdata, handles) % hObject handle to edit96 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit96 as text % str2double(get(hObject,'String')) returns contents of edit96 as a double

% --- Executes during object creation, after setting all properties. function edit96_CreateFcn(hObject, eventdata, handles) % hObject handle to edit96 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit97_Callback(hObject, eventdata, handles) % hObject handle to edit97 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit97 as text % str2double(get(hObject,'String')) returns contents of edit97 as a double

% --- Executes during object creation, after setting all properties. function edit97_CreateFcn(hObject, eventdata, handles) % hObject handle to edit97 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit98_Callback(hObject, eventdata, handles) % hObject handle to edit98 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB

% handles

structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit98 as text % str2double(get(hObject,'String')) returns contents of edit98 as a double

% --- Executes during object creation, after setting all properties. function edit98_CreateFcn(hObject, eventdata, handles) % hObject handle to edit98 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit99_Callback(hObject, eventdata, handles) % hObject handle to edit99 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit99 as text % str2double(get(hObject,'String')) returns contents of edit99 as a double

% --- Executes during object creation, after setting all properties. function edit99_CreateFcn(hObject, eventdata, handles) % hObject handle to edit99 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit100_Callback(hObject, eventdata, handles) % hObject handle to edit100 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit100 as text

% double

str2double(get(hObject,'String')) returns contents of edit100 as a

% --- Executes during object creation, after setting all properties. function edit100_CreateFcn(hObject, eventdata, handles) % hObject handle to edit100 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit101_Callback(hObject, eventdata, handles) % hObject handle to edit101 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit101 as text % str2double(get(hObject,'String')) returns contents of edit101 as a double

% --- Executes during object creation, after setting all properties. function edit101_CreateFcn(hObject, eventdata, handles) % hObject handle to edit101 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit102_Callback(hObject, eventdata, handles) % hObject handle to edit102 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit102 as text % str2double(get(hObject,'String')) returns contents of edit102 as a double

% --- Executes during object creation, after setting all properties. function edit102_CreateFcn(hObject, eventdata, handles) % hObject handle to edit102 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit103_Callback(hObject, eventdata, handles) % hObject handle to edit103 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit103 as text % str2double(get(hObject,'String')) returns contents of edit103 as a double

% --- Executes during object creation, after setting all properties. function edit103_CreateFcn(hObject, eventdata, handles) % hObject handle to edit103 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit104_Callback(hObject, eventdata, handles) % hObject handle to edit104 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit104 as text % str2double(get(hObject,'String')) returns contents of edit104 as a double

% --- Executes during object creation, after setting all properties. function edit104_CreateFcn(hObject, eventdata, handles) % hObject handle to edit104 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB

% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit105_Callback(hObject, eventdata, handles) % hObject handle to edit105 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit105 as text % str2double(get(hObject,'String')) returns contents of edit105 as a double

% --- Executes during object creation, after setting all properties. function edit105_CreateFcn(hObject, eventdata, handles) % hObject handle to edit105 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit106_Callback(hObject, eventdata, handles) % hObject handle to edit106 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit106 as text % str2double(get(hObject,'String')) returns contents of edit106 as a double

% --- Executes during object creation, after setting all properties. function edit106_CreateFcn(hObject, eventdata, handles) % hObject handle to edit106 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit107_Callback(hObject, eventdata, handles) % hObject handle to edit107 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit107 as text % str2double(get(hObject,'String')) returns contents of edit107 as a double

% --- Executes during object creation, after setting all properties. function edit107_CreateFcn(hObject, eventdata, handles) % hObject handle to edit107 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit108_Callback(hObject, eventdata, handles) % hObject handle to edit108 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit108 as text % str2double(get(hObject,'String')) returns contents of edit108 as a double

% --- Executes during object creation, after setting all properties. function edit108_CreateFcn(hObject, eventdata, handles) % hObject handle to edit108 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit83_Callback(hObject, eventdata, handles) % hObject handle to edit83 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit83 as text % str2double(get(hObject,'String')) returns contents of edit83 as a double

% --- Executes during object creation, after setting all properties. function edit83_CreateFcn(hObject, eventdata, handles) % hObject handle to edit83 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit84_Callback(hObject, eventdata, handles) % hObject handle to edit84 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit84 as text % str2double(get(hObject,'String')) returns contents of edit84 as a double

% --- Executes during object creation, after setting all properties. function edit84_CreateFcn(hObject, eventdata, handles) % hObject handle to edit84 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit85_Callback(hObject, eventdata, handles) % hObject handle to edit85 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit85 as text % str2double(get(hObject,'String')) returns contents of edit85 as a double

% --- Executes during object creation, after setting all properties. function edit85_CreateFcn(hObject, eventdata, handles) % hObject handle to edit85 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit86_Callback(hObject, eventdata, handles) % hObject handle to edit86 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit86 as text % str2double(get(hObject,'String')) returns contents of edit86 as a double

% --- Executes during object creation, after setting all properties. function edit86_CreateFcn(hObject, eventdata, handles) % hObject handle to edit86 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit87_Callback(hObject, eventdata, handles) % hObject handle to edit87 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit87 as text % str2double(get(hObject,'String')) returns contents of edit87 as a double

% --- Executes during object creation, after setting all properties. function edit87_CreateFcn(hObject, eventdata, handles) % hObject handle to edit87 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit88_Callback(hObject, eventdata, handles) % hObject handle to edit88 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit88 as text % str2double(get(hObject,'String')) returns contents of edit88 as a double

% --- Executes during object creation, after setting all properties. function edit88_CreateFcn(hObject, eventdata, handles) % hObject handle to edit88 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit89_Callback(hObject, eventdata, handles) % hObject handle to edit89 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit89 as text % str2double(get(hObject,'String')) returns contents of edit89 as a double

% --- Executes during object creation, after setting all properties. function edit89_CreateFcn(hObject, eventdata, handles) % hObject handle to edit89 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit90_Callback(hObject, eventdata, handles) % hObject handle to edit90 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit90 as text % str2double(get(hObject,'String')) returns contents of edit90 as a double

% --- Executes during object creation, after setting all properties. function edit90_CreateFcn(hObject, eventdata, handles) % hObject handle to edit90 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit91_Callback(hObject, eventdata, handles) % hObject handle to edit91 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit91 as text % str2double(get(hObject,'String')) returns contents of edit91 as a double

% --- Executes during object creation, after setting all properties. function edit91_CreateFcn(hObject, eventdata, handles)

% hObject % eventdata % handles

handle to edit91 (see GCBO) reserved - to be defined in a future version of MATLAB empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit92_Callback(hObject, eventdata, handles) % hObject handle to edit92 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit92 as text % str2double(get(hObject,'String')) returns contents of edit92 as a double

% --- Executes during object creation, after setting all properties. function edit92_CreateFcn(hObject, eventdata, handles) % hObject handle to edit92 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit93_Callback(hObject, eventdata, handles) % hObject handle to edit93 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit93 as text % str2double(get(hObject,'String')) returns contents of edit93 as a double

% --- Executes during object creation, after setting all properties. function edit93_CreateFcn(hObject, eventdata, handles) % hObject handle to edit93 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function edit94_Callback(hObject, eventdata, handles) % hObject handle to edit94 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit94 as text % str2double(get(hObject,'String')) returns contents of edit94 as a double

% --- Executes during object creation, after setting all properties. function edit94_CreateFcn(hObject, eventdata, handles) % hObject handle to edit94 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

You might also like