?? mlp_iris_class.m
字號:
% str2double(get(hObject,'String')) returns contents of set1_UR_td as a double%store the contents of input1_editText as a string. if the string %is not a number then input will be emptyinput = str2num(get(hObject,'String')); %checks to see if input is empty. if so, default input1_editText to zeroif (isempty(input)) set(hObject,'String','0')endguidata(hObject, handles);% --- Executes during object creation, after setting all properties.function set1_UR_td_CreateFcn(hObject, eventdata, handles)% hObject handle to set1_UR_td (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');endfunction set2_LR_td_Callback(hObject, eventdata, handles)% hObject handle to set2_LR_td (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 set2_LR_td as text% str2double(get(hObject,'String')) returns contents of set2_LR_td as a double%store the contents of input1_editText as a string. if the string %is not a number then input will be emptyinput = str2num(get(hObject,'String')); %checks to see if input is empty. if so, default input1_editText to zeroif (isempty(input)) set(hObject,'String','0')endguidata(hObject, handles);% --- Executes during object creation, after setting all properties.function set2_LR_td_CreateFcn(hObject, eventdata, handles)% hObject handle to set2_LR_td (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');endfunction set2_UR_td_Callback(hObject, eventdata, handles)% hObject handle to set2_UR_td (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 set2_UR_td as text% str2double(get(hObject,'String')) returns contents of set2_UR_td as a double%store the contents of input1_editText as a string. if the string %is not a number then input will be emptyinput = str2num(get(hObject,'String')); %checks to see if input is empty. if so, default input1_editText to zeroif (isempty(input)) set(hObject,'String','0')endguidata(hObject, handles);% --- Executes during object creation, after setting all properties.function set2_UR_td_CreateFcn(hObject, eventdata, handles)% hObject handle to set2_UR_td (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');endfunction set3_LR_td_Callback(hObject, eventdata, handles)% hObject handle to set3_LR_td (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 set3_LR_td as text% str2double(get(hObject,'String')) returns contents of set3_LR_td as a double%store the contents of input1_editText as a string. if the string %is not a number then input will be emptyinput = str2num(get(hObject,'String')); %checks to see if input is empty. if so, default input1_editText to zeroif (isempty(input)) set(hObject,'String','0')endguidata(hObject, handles);% --- Executes during object creation, after setting all properties.function set3_LR_td_CreateFcn(hObject, eventdata, handles)% hObject handle to set3_LR_td (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');endfunction set3_UR_td_Callback(hObject, eventdata, handles)% hObject handle to set3_UR_td (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 set3_UR_td as text% str2double(get(hObject,'String')) returns contents of set3_UR_td as a double%store the contents of input1_editText as a string. if the string %is not a number then input will be emptyinput = str2num(get(hObject,'String')); %checks to see if input is empty. if so, default input1_editText to zeroif (isempty(input)) set(hObject,'String','0')endguidata(hObject, handles);% --- Executes during object creation, after setting all properties.function set3_UR_td_CreateFcn(hObject, eventdata, handles)% hObject handle to set3_UR_td (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 Input_LR_Callback(hObject, eventdata, handles)% hObject handle to Input_LR (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 Input_LR as text% str2double(get(hObject,'String')) returns contents of Input_LR as a doubleinput = str2num(get(hObject,'String')); %checks to see if input is empty. if so, default input1_editText to zeroif (isempty(input)) set(hObject,'String','0')endguidata(hObject, handles);% --- Executes during object creation, after setting all properties.function Input_LR_CreateFcn(hObject, eventdata, handles)% hObject handle to Input_LR (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');endfunction Output_LR_Callback(hObject, eventdata, handles)% hObject handle to Output_LR (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 Output_LR as text% str2double(get(hObject,'String')) returns contents of Output_LR as a doubleinput = str2num(get(hObject,'String')); %checks to see if input is empty. if so, default input1_editText to zeroif (isempty(input)) set(hObject,'String','0')endguidata(hObject, handles);% --- Executes during object creation, after setting all properties.function Output_LR_CreateFcn(hObject, eventdata, handles)% hObject handle to Output_LR (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');endfunction Input_UR_Callback(hObject, eventdata, handles)% hObject handle to Input_UR (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Training data setD11=a(set1_ir:set1_ur,in_ir:in_ur);D12=a(set2_ir:set2_ur,in_ir:in_ur);D13=a(set3_ir:set3_ur,in_ir:in_ur);Np = (in_ur-in_ir) + 1 ; % No. of input% Hints: get(hObject,'String') returns contents of Input_UR as text% str2double(get(hObject,'String')) returns contents of Input_UR as a doubleinput = str2num(get(hObject,'String')); %checks to see if input is empty. if so, default input1_editText to zeroif (isempty(input)) set(hObject,'String','0')endguidata(hObject, handles);% --- Executes during object creation, after setting all properties.function Input_UR_CreateFcn(hObject, eventdata, handles)% hObject handle to Input_UR (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');endfunction Output_UR_Callback(hObject, eventdata, handles)% hObject handle to Output_UR (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 Output_UR as text% str2double(get(hObject,'String')) returns contents of Output_UR as a doubleinput = str2num(get(hObject,'String')); %checks to see if input is empty. if so, default input1_editText to zeroif (isempty(input)) set(hObject,'String','0')endguidata(hObject, handles);% --- Executes during object creation, after setting all properties.function Output_UR_CreateFcn(hObject, eventdata, handles)% hObject handle to Output_UR (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 Hidden_Nodes_Callback(hObject, eventdata, handles)% hObject handle to Hidden_Nodes (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 Hidden_Nodes as text% str2double(get(hObject,'String')) returns contents of Hidden_Nodes as a doubleinput = str2num(get(hObject,'String')); %checks to see if input is empty. if so, default input1_editText to zeroif (isempty(input)) set(hObject,'String','0')endguidata(hObject, handles);% --- Executes during object creation, after setting all properties.function Hidden_Nodes_CreateFcn(hObject, eventdata, handles)% hObject handle to Hidden_Nodes (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');endfunction Etah_Callback(hObject, eventdata, handles)% hObject handle to Etah (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 Etah as text% str2double(get(hObject,'String')) returns contents of Etah as a doubleinput = str2num(get(hObject,'String')); %checks to see if input is empty. if so, default input1_editText to zeroif (isempty(input)) set(hObject,'String','0')endguidata(hObject, handles);% --- Executes during object creation, after setting all properties.function Etah_CreateFcn(hObject, eventdata, handles)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -