Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function varargout = untitledguido(varargin)
- % UNTITLEDGUIDO MATLAB code for untitledguido.fig
- % UNTITLEDGUIDO, by itself, creates a new UNTITLEDGUIDO or raises the existing
- % singleton*.
- %
- % H = UNTITLEDGUIDO returns the handle to a new UNTITLEDGUIDO or the handle to
- % the existing singleton*.
- %
- % UNTITLEDGUIDO('CALLBACK',hObject,eventData,handles,...) calls the local
- % function named CALLBACK in UNTITLEDGUIDO.M with the given input arguments.
- %
- % UNTITLEDGUIDO('Property','Value',...) creates a new UNTITLEDGUIDO or raises the
- % existing singleton*. Starting from the left, property value pairs are
- % applied to the GUI before untitledguido_OpeningFcn gets called. An
- % unrecognized property name or invalid value makes property application
- % stop. All inputs are passed to untitledguido_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 untitledguido
- % Last Modified by GUIDE v2.5 02-Dec-2016 20:11:01
- % Begin initialization code - DO NOT EDIT
- gui_Singleton = 1;
- gui_State = struct('gui_Name', mfilename, ...
- 'gui_Singleton', gui_Singleton, ...
- 'gui_OpeningFcn', @untitledguido_OpeningFcn, ...
- 'gui_OutputFcn', @untitledguido_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 untitledguido is made visible.
- function untitledguido_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 untitledguido (see VARARGIN)
- % Choose default command line output for untitledguido
- handles.output = hObject;
- % Update handles structure
- guidata(hObject, handles);
- % UIWAIT makes untitledguido wait for user response (see UIRESUME)
- % uiwait(handles.figure1);
- addpath(genpath('C:\Users\Anna\Documents\MATLAB\Szakdoga'))
- global bodydance; %A beolvasott random mozgás
- global transform; %A kov. mtx. két legnagyobb sajátértékéhez tartozó sajátvektor
- [~, bodydance] = readNprocess('rand1.zba',5);
- transform = PCA(bodydance);
- global signal; % A vizsgált jel
- global time; %Az ehhez tartozó idő
- global from; %Az idő hányadik elemétől vizsgáljuk
- global to; %Az idő hányadik eleméig vizsgáljuk
- [time, signal] = readNprocess('rand2.zba',5);
- from = 1;
- to = size(signal,1);
- global h;
- h = signal * transform;
- %A plotcsatornákat tároló vektor, a könnyebb elérés érdekében
- global channels;
- channels = [handles.CH1, handles.CH2, handles.CH3, handles.CH4, ...
- handles.CH5, handles.CH6, handles.CH7, handles.CH8];
- %A pozíciógörgő inicializálása
- set (handles.Position,'Max', to);
- set (handles.Position,'Min', from);
- set (handles.Position,'Value', from);
- set (handles.Position,'SliderStep',[ 1/(to-from), 1/100 ]);
- %A legördülő menük inicializálása
- value = 1:3;
- value = num2str(value');
- set(handles.Subjects, 'String', value);
- value = 1:4;
- value = num2str(value');
- set(handles.Bodydance, 'String', value);
- global plots; % A *-ok kirajzolását elérő vektor, az alőző *-ok törlése végett
- %A jel kirajzolása
- plotSignal(handles);
- %A *-ok 1. kirajzolása
- plotAktuel(handles);
- global started;
- started = 1;
- function plotSignal(handles)
- %plotolja az akktuális jelet
- global signal;
- global time;
- global from;
- global to;
- global channels;
- global plots;
- for i = 1:8
- axes(channels(i));
- plot(channels(i),time(from:to),signal(from:to,i));
- axis([time(from),time(to),-1000,1000]);
- axis 'auto y';
- %axis auto
- xlabel('Time (s)');
- ylabel('Amplitude (mV)');
- hold on
- plots(i) = plot(channels(i),0,0,'r*');
- hold off
- end
- %A *-ok 0. kirajzolása, hogy a későbbiekben a delete ne fagyjon ki
- % plot(handles.Cursor,h(a,1),h(a,2),'r*');
- function plotAktuel(handles)
- %plotolja az akktuális jelet
- global signal;
- global time;
- global channels;
- global h;
- global plots;
- a = round(get(handles.Position,'Value'));
- for i = 1:8
- axes(channels(i));
- hold on;
- delete(plots(i));
- plots(i) = plot(channels(i), time(a), signal(a,i), 'r*');
- xlabel('Time (s)');
- ylabel('Amplitude (mV)');
- hold off;
- end
- axes(handles.Cursor);
- global con;
- if con
- hold on;
- end
- plot(handles.Cursor,h(a,1),h(a,2),'r*');
- axis([-200,200,-200,200]);
- hold off;
- % --- Outputs from this function are returned to the command line.
- function varargout = untitledguido_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 slider movement.
- function Position_Callback(hObject, eventdata, handles)
- % hObject handle to Position (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
- val = round(get(hObject, 'Value')*10/9);
- val = num2str(val);
- set(handles.time, 'String', val);
- plotAktuel(handles);
- % --- Executes during object creation, after setting all properties.
- function Position_CreateFcn(hObject, eventdata, handles)
- % hObject handle to Position (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 Refresh.
- function Refresh_Callback(hObject, eventdata, handles)
- % hObject handle to Refresh (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- global from;
- global to;
- from = round(str2double(get(handles.From,'String')));
- to = round(str2double(get(handles.To,'String')));
- set(handles.Position,'Min', from );
- set(handles.Position,'Max', to);
- set (handles.Position,'Value', from);
- set (handles.Position,'SliderStep',[ 1/(to-from), 1/100 ]);
- global con;
- con = get(handles.doRMS,'Value');
- plotSignal();
- plotAktuel(handles);
- % --- Executes on button press in Process.
- function Process_Callback(hObject, eventdata, handles)
- % hObject handle to Process (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- p = 20;
- global channels;
- global bodydance; %A beolvasott random mozgás
- global transform; %A kov. mtx. két legnagyobb sajátértékéhez tartozó sajátvektor
- bodydance = RMSMtx(bodydance,p)
- transform = PCA(bodydance)
- global signal; % A vizsgált jel
- signal = RMSMtx(signal,p);
- global h;
- h = signal * transform;
- plotSignal(handles);
- plotAktuel(handles);
- % --- Executes on button press in Run.
- function Run_Callback(hObject, eventdata, handles)
- % hObject handle to Run (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- global actuel;
- global from;
- global to;
- for i = from:2:to
- actuel = i;
- set(handles.Position,'Value',i);
- plotAktuel(handles);
- end
- % --- Executes on button press in change_bd.
- function change_bd_Callback(hObject, eventdata, handles)
- % hObject handle to change_bd (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- s = get(handles.bodydance,'Value');
- s = ['rand' s '.zba'];
- global bodydance; %A beolvasott random mozgás
- global transform; %A kov. mtx. két legnagyobb sajátértékéhez tartozó sajátvektor
- [~, bodydance] = loadbd(s);
- transform = PCA(bodydance);
- % --- Executes on button press in change_signal.
- function change_signal_Callback(hObject, eventdata, handles)
- % hObject handle to change_signal (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- i = get(handles.Signal,'Value');
- s = get(handles.Signal,'String');
- s = strcat(s{i}, '.zba')
- s2 = 'sifut.zba'
- global signal; % A vizsgált jel
- global time; %Az ehhez tartozó idő
- global from; %Az idő hányadik elemétől vizsgáljuk
- global to; %Az idő hányadik eleméig vizsgáljuk
- [time, signal] = loadbd(s);
- from = 1;
- to = size(signal,1);
- global transform;
- global h;
- h = signal * transform;
- global channels;
- global plots;
- plotSignal(handles);
- plotAktuel(handles);
- function To_Callback(hObject, eventdata, handles)
- % hObject handle to To (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 To as text
- % str2double(get(hObject,'String')) returns contents of To as a double
- % --- Executes during object creation, after setting all properties.
- function To_CreateFcn(hObject, eventdata, handles)
- % hObject handle to To (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 From_Callback(hObject, eventdata, handles)
- % hObject handle to From (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 From as text
- % str2double(get(hObject,'String')) returns contents of From as a double
- % --- Executes during object creation, after setting all properties.
- function From_CreateFcn(hObject, eventdata, handles)
- % hObject handle to From (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 lb_Callback(hObject, eventdata, handles)
- % hObject handle to lb (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 lb as text
- % str2double(get(hObject,'String')) returns contents of lb as a double
- % --- Executes during object creation, after setting all properties.
- function lb_CreateFcn(hObject, eventdata, handles)
- % hObject handle to lb (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 change_subject.
- function change_subject_Callback(hObject, eventdata, handles)
- % hObject handle to change_subject (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % --- Executes on selection change_signal in Subjects.
- function Subjects_Callback(hObject, eventdata, handles)
- % hObject handle to Subjects (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 Subjects contents as cell array
- % contents{get(hObject,'Value')} returns selected item from Subjects
- % --- Executes during object creation, after setting all properties.
- function Subjects_CreateFcn(hObject, eventdata, handles)
- % hObject handle to Subjects (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 checkbox1.
- function checkbox1_Callback(hObject, eventdata, handles)
- % hObject handle to checkbox1 (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 checkbox1
- % --- Executes on button press in checkbox2.
- function checkbox2_Callback(hObject, eventdata, handles)
- % hObject handle to checkbox2 (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 checkbox2
- % --- Executes on button press in checkbox3.
- function checkbox3_Callback(hObject, eventdata, handles)
- % hObject handle to checkbox3 (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 checkbox3
- % --- Executes on button press in checkbox4.
- function checkbox4_Callback(hObject, eventdata, handles)
- % hObject handle to checkbox4 (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 checkbox4
- % --- Executes on button press in checkbox5.
- function checkbox5_Callback(hObject, eventdata, handles)
- % hObject handle to checkbox5 (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 checkbox5
- % --- Executes on button press in checkbox6.
- function checkbox6_Callback(hObject, eventdata, handles)
- % hObject handle to checkbox6 (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 checkbox6
- % --- Executes on button press in checkbox7.
- function checkbox7_Callback(hObject, eventdata, handles)
- % hObject handle to checkbox7 (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 checkbox7
- % --- Executes on button press in checkbox8.
- function checkbox8_Callback(hObject, eventdata, handles)
- % hObject handle to checkbox8 (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 checkbox8
- % --- Executes on selection change_signal in Bodydance.
- function Bodydance_Callback(hObject, eventdata, handles)
- % hObject handle to Bodydance (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 Bodydance contents as cell array
- % contents{get(hObject,'Value')} returns selected item from Bodydance
- % --- Executes during object creation, after setting all properties.
- function Bodydance_CreateFcn(hObject, eventdata, handles)
- % hObject handle to Bodydance (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 selection change_signal in Signal.
- function Signal_Callback(hObject, eventdata, handles)
- % hObject handle to Signal (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 Signal contents as cell array
- % contents{get(hObject,'Value')} returns selected item from Signal
- % --- Executes during object creation, after setting all properties.
- function Signal_CreateFcn(hObject, eventdata, handles)
- % hObject handle to Signal (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 Bandpass.
- function Bandpass_Callback(hObject, eventdata, handles)
- % hObject handle to Bandpass (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 Bandpass
- % --- Executes on button press in doRMS.
- function doRMS_Callback(hObject, eventdata, handles)
- % hObject handle to doRMS (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 doRMS
- function time_Callback(hObject, eventdata, handles)
- % hObject handle to time (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 time as text
- % str2double(get(hObject,'String')) returns contents of time as a double
- % --- Executes during object creation, after setting all properties.
- function time_CreateFcn(hObject, eventdata, handles)
- % hObject handle to time (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 setFrom.
- function setFrom_Callback(hObject, eventdata, handles)
- % hObject handle to setFrom (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- val = get(handles.time, 'String');
- set(handles.From, 'String', val);
- valnumF = str2double(val);
- valnumT = str2double(get(handles.To, 'String'));
- if valnumF > valnumT
- set(handles.To, 'String', val);
- end
- % --- Executes on button press in setTo.
- function setTo_Callback(hObject, eventdata, handles)
- % hObject handle to setTo (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- val = get(handles.time, 'String');
- set(handles.To, 'String', val);
- valnumT = str2double(val);
- valnumF = str2double(get(handles.From, 'String'));
- if valnumF > valnumT
- set(handles.From, 'String', val);
- end
- % --- Executes on button press in plotInterval.
- function plotInterval_Callback(hObject, eventdata, handles)
- % hObject handle to plotInterval (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- global time;
- global h;
- from = ms2n(str2double(get(handles.From, 'String')));
- to = ms2n(str2double(get(handles.To, 'String')));
- plot (handles.Cursor, h(from:to,1), h(from:to,2), 'r-');
- % --- Executes on button press in LED.
- function LED_Callback(hObject, eventdata, handles)
- % hObject handle to LED (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 LED
- % --- Executes on button press in checkbox12.
- function checkbox12_Callback(hObject, eventdata, handles)
- % hObject handle to checkbox12 (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 checkbox12
- % --- Executes on button press in absolute.
- function absolute_Callback(hObject, eventdata, handles)
- % hObject handle to absolute (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 absolute
- % --- Executes on button press in Relative.
- function Relative_Callback(hObject, eventdata, handles)
- % hObject handle to Relative (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 Relative
- 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 handle to edit6 (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 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
- 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 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement