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

% Last Modified by GUIDE v2.5 17-Sep-2013 15:12:56

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

% Choose default command line output for gui1
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

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


% --- Outputs from this function are returned to the command line.
function varargout = gui1_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 Codieren_button.
function Codieren_button_Callback(hObject, eventdata, handles)
% hObject    handle to Codieren_button (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    ia0 = str2num(get(handles.ia0,'string'));
    ia1 = str2num(get(handles.ia1,'string'));
    ia2 = str2num(get(handles.ia2,'string'));
    ia3 = str2num(get(handles.ia3,'string'));
    ia4 = str2num(get(handles.ia4,'string'));
    ia5 = str2num(get(handles.ia5,'string'));
    ia6 = str2num(get(handles.ia6,'string'));
    
    msg = [ia0 ia1 ia2 ia3 ia4 ia5 ia6];
    code = encode(msg, 15, 7, 'cyclic');
    ca0  = code(1,1);  ca1  = code(1,2);  ca2  = code(1,3); 
    ca3  = code(1,4);  ca4  = code(1,5);  ca5  = code(1,6); 
    ca6  = code(1,7);  ca7  = code(1,8);  ca8  = code(1,9); 
    ca9  = code(1,10); ca10 = code(1,11); ca11 = code(1,12);
    ca12 = code(1,13); ca13 = code(1,14); ca14 = code(1,15); 

    set(handles.ca0,'string',ca0);   set(handles.ca1,'string',ca1);
    set(handles.ca2,'string',ca2);   set(handles.ca3,'string',ca3);
    set(handles.ca4,'string',ca4);   set(handles.ca5,'string',ca5);
    set(handles.ca6,'string',ca6);   set(handles.ca7,'string',ca7);
    set(handles.ca8,'string',ca8);   set(handles.ca9,'string',ca9);
    set(handles.ca10,'string',ca10); set(handles.ca11,'string',ca11);
    set(handles.ca12,'string',ca12); set(handles.ca13,'string',ca13);
    set(handles.ca14,'string',ca14);
    
    gui2;
    
    disp(sprintf('\n\nDie eingegeben Information lautet %d %d %d %d %d %d %d\n\n',msg))
    
    msg_flp= fliplr(msg);
    x=zeros(1,8); 
    x_prev = zeros(1,8);

    for i=1: length(msg)
    x_prev(1)=x(1);
    x_prev(2)=x(2);
    x_prev(3)=x(3);
    x_prev(4)=x(4);
    x_prev(5)=x(5);
    x_prev(6)=x(6);
    x_prev(7)=x(7);
    x_prev(8)=xor(x(8),msg_flp(i));
    x(1) = x_prev(8);
    x(2) = x_prev(1);
    x(3) = x_prev(2);
    x(4) = x_prev(3);
    x(5) = xor(x_prev(4),x_prev(8));
    x(6) = x_prev(5);
    x(7) = xor(x_prev(6),x_prev(8));
    x(8) = xor(x_prev(7),x_prev(8));
    x_store(i+1,:)=[x(1) x(2) x(3) x(4) x(5) x(6) x(7) x(8)];
    shift_number(i+1,:)=i;
    msg_input(i+1)=msg_flp(i);
    end
    for i=1: (length(msg)+1) 
    disp(sprintf('Shift number = %d\tRegister-->%d%d%d%d%d%d%d%d,\tinput=%d',shift_number(i),x_store(i,:),msg_input(i)))
    end
    output=[x_store(length(msg)+1,:) msg]; 
    disp(sprintf('\n\nDas systematische Codewort lautet %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d\n\n',output))

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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