📄 urbmicro.m
字号:
function uipanel14_SelectionChangeFcn(hObject, eventdata, handles)
% hObject handle to uipanel14 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
a=get(handles.radiobutton12, 'Value');
if a==0
set(handles.resd, 'Style', 'edit','BackgroundColor','white');
set(handles.resthetav, 'Style', 'edit','BackgroundColor','w');
set(handles.resthetaBS, 'Style', 'edit','BackgroundColor','w');
set(handles.resomegaBS, 'Style', 'edit','BackgroundColor','w');
set(handles.resomegaMS, 'Style', 'edit','BackgroundColor','w');
elseif a==1
set(handles.resd, 'Style', 'text');
set(handles.resthetav, 'Style', 'text');
set(handles.resthetaBS, 'Style', 'text');
set(handles.resomegaBS, 'Style', 'text');
set(handles.resomegaMS, 'Style', 'text');
set(handles.resthetaMS, 'Style', 'text');
end
% --------------------------------------------------------------------
function uipanel12_SelectionChangeFcn(hObject, eventdata, handles)
% hObject handle to uipanel12 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes during object creation, after setting all properties.
function resd_CreateFcn(hObject, eventdata, handles)
% hObject handle to resd (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
function edit40_Callback(hObject, eventdata, handles)
% hObject handle to edit40 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit40 as text
% str2double(get(hObject,'String')) returns contents of edit40 as a double
% --- Executes during object creation, after setting all properties.
function edit40_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit40 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function edit41_Callback(hObject, eventdata, handles)
% hObject handle to edit41 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit41 as text
% str2double(get(hObject,'String')) returns contents of edit41 as a double
% --- Executes during object creation, after setting all properties.
function edit41_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit41 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function edit42_Callback(hObject, eventdata, handles)
% hObject handle to edit42 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit42 as text
% str2double(get(hObject,'String')) returns contents of edit42 as a double
% --- Executes during object creation, after setting all properties.
function edit42_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit42 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function edit43_Callback(hObject, eventdata, handles)
% hObject handle to edit43 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit43 as text
% str2double(get(hObject,'String')) returns contents of edit43 as a double
% --- Executes during object creation, after setting all properties.
function edit43_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit43 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function edit44_Callback(hObject, eventdata, handles)
% hObject handle to edit44 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit44 as text
% str2double(get(hObject,'String')) returns contents of edit44 as a double
% --- Executes during object creation, after setting all properties.
function edit44_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit44 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function edit45_Callback(hObject, eventdata, handles)
% hObject handle to edit45 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit45 as text
% str2double(get(hObject,'String')) returns contents of edit45 as a double
% --- Executes during object creation, after setting all properties.
function edit45_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit45 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function edit46_Callback(hObject, eventdata, handles)
% hObject handle to edit46 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit46 as text
% str2double(get(hObject,'String')) returns contents of edit46 as a double
% --- Executes during object creation, after setting all properties.
function edit46_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit46 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function edit47_Callback(hObject, eventdata, handles)
% hObject handle to edit47 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit47 as text
% str2double(get(hObject,'String')) returns contents of edit47 as a double
% --- Executes during object creation, after setting all properties.
function edit47_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit47 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function txtBSAS_Callback(hObject, eventdata, handles)
% hObject handle to txtBSAS (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 txtBSAS as text
% str2double(get(hObject,'String')) returns contents of txtBSAS as a double
% --- Executes during object creation, after setting all properties.
function txtBSAS_CreateFcn(hObject, eventdata, handles)
% hObject handle to txtBSAS (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 edit49_Callback(hObject, eventdata, handles)
% hObject handle to edit49 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit49 as text
% str2double(get(hObject,'String')) returns contents of edit49 as a double
% --- Executes during object creation, after setting all properties.
function edit49_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit49 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function txtMSAS_Callback(hObject, eventdata, handles)
% hObject handle to txtMSAS (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 txtMSAS as text
% str2double(get(hObject,'String')) returns contents of txtMSAS as a double
% --- Executes during object creation, after setting all properties.
function txtMSAS_CreateFcn(hObject, eventdata, handles)
% hObject handle to txtMSAS (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 checkbox14.
function checkbox14_Callback(hObject, eventdata, handles)
% hObject handle to checkbox14 (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 checkbox14
d=get(handles.checkbox14, 'Value');
valN=str2double(get(handles.txtN,'string'));
if d==1
set(handles.uipanel19, 'Visible', 'on');
set(handles.uipanel20, 'Visible', 'on');
for i=1:valN
if i<=6
A(i)=uicontrol('style','edit','string',-3*i,'background','w','units','normalized','position',[0.60 0.92-0.06*i 0.04 0.03]);
B(i)=uicontrol('style','edit','string',10*i,'background','w','units','normalized','position',[0.80 0.92-0.06*i 0.04 0.03]);
elseif i>6 & i<=12
A(i)=uicontrol('style','edit','string',-3*i,'background','w','units','normalized','position',[0.66 1.28-0.06*i 0.04 0.03]);
B(i)=uicontrol('style','edit','string',10*i,'background','w','units','normalized','position',[0.86 1.28-0.06*i 0.04 0.03]);
elseif i>12
A(i)=uicontrol('style','edit','string',-3*i,'background','w','units','normalized','position',[0.72 1.64-0.06*i 0.04 0.03]);
B(i)=uicontrol('style','edit','string',10*i,'background','w','units','normalized','position',[0.92 1.64-0.06*i 0.04 0.03]);
end
i=i+1;
end
handles.A=A;
handles.B=B;
guidata(hObject,handles);
elseif d==0
set(handles.uipanel19, 'Visible', 'off');
set(handles.uipanel20, 'Vi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -