function varargout = run(varargin)
% RUN MATLAB code for run.fig
%      RUN, by itself, creates a new RUN or raises the existing
%      singleton*.
%
%      H = RUN returns the handle to a new RUN or the handle to
%      the existing singleton*.
%
%      RUN('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in RUN.M with the given input arguments.
%
%      RUN('Property','Value',...) creates a new RUN or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before run_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to run_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 run

% Last Modified by GUIDE v2.5 20-Oct-2011 23:54:29

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @run_OpeningFcn, ...
                   'gui_OutputFcn',  @run_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 run is made visible.
function run_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 run (see VARARGIN)

% Choose default command line output for run
handles.output = hObject;
whitebg([0.4,0.5,0.6]);
% Update handles structure
guidata(hObject, handles);
setappdata(0,'plottype','normaal');

% UIWAIT makes run wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = run_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;


% --- Executes on button press in pb_load.
function pb_load_Callback(hObject, eventdata, handles)
% hObject    handle to pb_load (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
[file.filename, file.pathname] = uigetfile({'*.txt'},'File Selector');
 setappdata(0,'file',file)


% --- Executes on button press in pb_plot.
function pb_plot_Callback(hObject, eventdata, handles)
set(handles.uipanel,'SelectionChangeFcn',@uipanel_SelectionChangeFcn);


    

switch getappdata(0,'plottype');
   
    case 'normaal'
      parameters.studn = get(handles.ed_studn,'String');  
      sn = parameters.studn;
      parameters.route.straal = 5 + str2double(sn(6))/4 + str2double(sn(7))/4;
      parameters.route.xm = parameters.route.straal + 1 + 2*str2double(sn(4)) + str2double(sn(3));
      parameters.route.ym = parameters.route.straal + 1 + 2*str2double(sn(5))+ str2double(sn(6));
      global t;
      setappdata(0,'parameters',parameters)
      run parameterfile 
      run op3
     
      import = getappdata(0,'import');
      
          
     
          
       yr = import.y_route;
       xr = import.x_route;
       zr = import.z_route;
       data = import.data;
       s = import.s;
      
        axes(handles.graph1)
        cla
        axis normal
        axis auto 
        rotate3d on
        hold on
        plot3(xr,yr,zr,'w','LineWidth',3);
        surf(data);
        hold off
        axes(handles.graph2)
        %rotate3d off
        h = rotate3d;
        %rotate3d off
        cla
        axis normal
        axis auto
        plot(s,zr)
        setAllowAxesRotate(h,gca,false);
      
      
      
      
      
    case 'waarde'
        parameters.auto.L = get(handles.ed_L,'String');                          %[m]
        parameters.auto.Ichassis = get(handles.ed_Ichassis,'String');                          %[kg*m2] - Massatraagheidsmoment chassis
        parameters.auto.Icontra = get(handles.ed_Icontra,'String');                          %[kg*m2] - Massatraagheidsmoment chassis
        parameters.auto.Mchassis = get(handles.ed_Mchassis,'String');            %[kg] - Massa chassis 
        parameters.auto.Mcontra = get(handles.ed_Mcontra,'String');              %[kg]
        parameters.auto.M = parameters.auto.Mcontra + parameters.auto.Mchassis;  %[kg] 
        parameters.auto.H = get(handles.ed_H,'String');                          %hoogte contragewicht
        parameters.auto.k1 = get(handles.ed_k1,'String');                        %[N/m] - Veerstijfheid voor
        parameters.auto.k2 = get(handles.ed_k2,'String');                        %[N/m] - Veerstijfheid achter
        parameters.auto.c1 = get(handles.ed_c1,'String');                        %[N/m] - Demperconstante voor
        parameters.auto.c2 = get(handles.ed_c2,'String');                        %[N/m] - Demperconstante achter 
                
        parameters.model.v0 = get(handles.ed_v0,'String');                       %[m/s] - Beginsnelheid
        parameters.model.teta0 = get(handles.ed_teta0,'String');
        
        parameters.auto.cw = get(handles.ed_cw,'String');                        %[Ns2/m2] - Luchtwrijving Cw,lucht 
        parameters.auto.Fwrol = get(handles.ed_Fwrol,'String');                  % Rolwrijvingskracht
        parameters.auto.cm = get(handles.ed_cm,'String');
        
        parameters.route.straal = get(handles.ed_straal,'String');
        parameters.route.xm = get(handles.ed_xm,'String');
        parameters.route.ym = get(handles.ed_ym,'String');
        
        parameters.auto.Fcw = get(handles.ed_Fcw,'String');
        t_end = get(handles.ed_t_end,'String');
        setappdata(0,'parameters',parameters)
        
        
        run WB_4173414_opgave3
        
       % sim('eindopdracht.mdl',t_end); 
 import = getappdata(0,'import');              
end


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



function ed_studn_Callback(hObject, eventdata, handles)
% hObject    handle to ed_studn (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 ed_studn as text
%        str2double(get(hObject,'String')) returns contents of ed_studn as a double


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




function ed_Mcontra_Callback(hObject, eventdata, handles)
% hObject    handle to ed_Mcontra (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 ed_Mcontra as text
%        str2double(get(hObject,'String')) returns contents of ed_Mcontra as a double


% --- Executes during object creation, after setting all properties.
function ed_Mcontra_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_Mcontra (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 when selected object is changed in uipanel.
function uipanel_SelectionChangeFcn(hObject, eventdata, handles)

switch get(eventdata.NewValue,'Tag')
    case 'rb_waarde'
        setappdata(0,'plottype','waarde')
        'waarde';
    case 'rb_studn'
        setappdata(0,'plottype','normaal')
        'normaal';
end
% hObject    handle to the selected object in uipanel 
% eventdata  structure with the following fields (see UIBUTTONGROUP)
%	EventName: string 'SelectionChanged' (read only)
%	OldValue: handle of the previously selected object or empty if none was selected
%	NewValue: handle of the currently selected object
% handles    structure with handles and user data (see GUIDATA)


% --- Executes on button press in pb_ok.
function pb_ok_Callback(hObject, eventdata, handles)
set(handles.uipanel,'SelectionChangeFcn',@uipanel_SelectionChangeFcn);
switch getappdata(0,'plottype');
    
    case 'normaal'
       set(handles.studnpanel,'Visible','on') 
       set(handles.waardepanel,'Visible','off')
    
     case 'waarde'
         set(handles.waardepanel,'Visible','on')
         set(handles.studnpanel,'Visible','off')
end
% hObject    handle to pb_ok (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function ed_Mchassis_Callback(hObject, eventdata, handles)
% hObject    handle to ed_Mchassis (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 ed_Mchassis as text
%        str2double(get(hObject,'String')) returns contents of ed_Mchassis as a double


% --- Executes during object creation, after setting all properties.
function ed_Mchassis_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_Mchassis (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 ed_Ichassis_Callback(hObject, eventdata, handles)
% hObject    handle to ed_Ichassis (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 ed_Ichassis as text
%        str2double(get(hObject,'String')) returns contents of ed_Ichassis as a double


% --- Executes during object creation, after setting all properties.
function ed_Ichassis_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_Ichassis (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 ed_Icontra_Callback(hObject, eventdata, handles)
% hObject    handle to ed_Icontra (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 ed_Icontra as text
%        str2double(get(hObject,'String')) returns contents of ed_Icontra as a double


% --- Executes during object creation, after setting all properties.
function ed_Icontra_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_Icontra (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 ed_L_Callback(hObject, eventdata, handles)
% hObject    handle to ed_L (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 ed_L as text
%        str2double(get(hObject,'String')) returns contents of ed_L as a double


% --- Executes during object creation, after setting all properties.
function ed_L_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_L (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 ed_k1_Callback(hObject, eventdata, handles)
% hObject    handle to ed_k1 (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 ed_k1 as text
%        str2double(get(hObject,'String')) returns contents of ed_k1 as a double


% --- Executes during object creation, after setting all properties.
function ed_k1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_k1 (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 ed_k2_Callback(hObject, eventdata, handles)
% hObject    handle to ed_k2 (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 ed_k2 as text
%        str2double(get(hObject,'String')) returns contents of ed_k2 as a double


% --- Executes during object creation, after setting all properties.
function ed_k2_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_k2 (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 ed_c1_Callback(hObject, eventdata, handles)
% hObject    handle to ed_c1 (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 ed_c1 as text
%        str2double(get(hObject,'String')) returns contents of ed_c1 as a double


% --- Executes during object creation, after setting all properties.
function ed_c1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_c1 (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 ed_c2_Callback(hObject, eventdata, handles)
% hObject    handle to ed_c2 (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 ed_c2 as text
%        str2double(get(hObject,'String')) returns contents of ed_c2 as a double


% --- Executes during object creation, after setting all properties.
function ed_c2_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_c2 (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 ed_cw_Callback(hObject, eventdata, handles)
% hObject    handle to ed_cw (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 ed_cw as text
%        str2double(get(hObject,'String')) returns contents of ed_cw as a double


% --- Executes during object creation, after setting all properties.
function ed_cw_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_cw (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 ed_cm_Callback(hObject, eventdata, handles)
% hObject    handle to ed_cm (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 ed_cm as text
%        str2double(get(hObject,'String')) returns contents of ed_cm as a double


% --- Executes during object creation, after setting all properties.
function ed_cm_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_cm (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 ed_Fcw_Callback(hObject, eventdata, handles)
% hObject    handle to ed_Fcw (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 ed_Fcw as text
%        str2double(get(hObject,'String')) returns contents of ed_Fcw as a double


% --- Executes during object creation, after setting all properties.
function ed_Fcw_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_Fcw (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 ed_Fwrol_Callback(hObject, eventdata, handles)
% hObject    handle to ed_Fwrol (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 ed_Fwrol as text
%        str2double(get(hObject,'String')) returns contents of ed_Fwrol as a double


% --- Executes during object creation, after setting all properties.
function ed_Fwrol_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_Fwrol (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 ed_v0_Callback(hObject, eventdata, handles)
% hObject    handle to ed_v0 (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 ed_v0 as text
%        str2double(get(hObject,'String')) returns contents of ed_v0 as a double


% --- Executes during object creation, after setting all properties.
function ed_v0_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_v0 (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 ed_t_end_Callback(hObject, eventdata, handles)
% hObject    handle to ed_t_end (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 ed_t_end as text
%        str2double(get(hObject,'String')) returns contents of ed_t_end as a double


% --- Executes during object creation, after setting all properties.
function ed_t_end_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_t_end (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 ed_H_Callback(hObject, eventdata, handles)
% hObject    handle to ed_H (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 ed_H as text
%        str2double(get(hObject,'String')) returns contents of ed_H as a double


% --- Executes during object creation, after setting all properties.
function ed_H_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_H (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 ed_straal_Callback(hObject, eventdata, handles)
% hObject    handle to ed_straal (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 ed_straal as text
%        str2double(get(hObject,'String')) returns contents of ed_straal as a double


% --- Executes during object creation, after setting all properties.
function ed_straal_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_straal (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 ed_xm_Callback(hObject, eventdata, handles)
% hObject    handle to ed_xm (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 ed_xm as text
%        str2double(get(hObject,'String')) returns contents of ed_xm as a double


% --- Executes during object creation, after setting all properties.
function ed_xm_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_xm (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 ed_ym_Callback(hObject, eventdata, handles)
% hObject    handle to ed_ym (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 ed_ym as text
%        str2double(get(hObject,'String')) returns contents of ed_ym as a double


% --- Executes during object creation, after setting all properties.
function ed_ym_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_ym (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 ed_teta0_Callback(hObject, eventdata, handles)
% hObject    handle to ed_teta0 (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 ed_teta0 as text
%        str2double(get(hObject,'String')) returns contents of ed_teta0 as a double


% --- Executes during object creation, after setting all properties.
function ed_teta0_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ed_teta0 (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
