📄 vct0805.m
字号:
% 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 VCT.
function VCT_Callback(hObject, eventdata, handles)
% hObject handle to VCT (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
open('xiangweiqi.fig');
%figure('Name','xiangweiqi');
% --- Executes on button press in valve.
function valve_Callback(hObject, eventdata, handles)
% hObject handle to valve (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
open('ywyafacanshu.fig');
% --- Executes on button press in pid.
function pid_Callback(hObject, eventdata, handles)
% hObject handle to pid (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
open('PIDcanshu.fig');
% --- Executes on button press in xitong.
function xitong_Callback(hObject, eventdata, handles)
% hObject handle to xitong (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
open('xitongcanshu.fig');
function phaseinite_Callback(hObject, eventdata, handles)
% hObject handle to phaseinite (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
model_open(handles)
NewStrVal = get(hObject,'String');
NewVal = str2num(NewStrVal);
assignin('base','inite_phase',NewVal);
% Hints: get(hObject,'String') returns contents of phaseinite as text
% str2double(get(hObject,'String')) returns contents of phaseinite as a double
% --- Executes during object creation, after setting all properties.
function phaseinite_CreateFcn(hObject, eventdata, handles)
% hObject handle to phaseinite (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 simulinkkai.
function simulinkkai_Callback(hObject, eventdata, handles)
% hObject handle to simulinkkai (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% [timeVector,stateVector,outputVector] = sim('PIDkongzhixiangying',[0 0.2]);
xiangyinshudu
% --- Executes on button press in pushbutton7.
function pushbutton7_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton7 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in pushbutton8.
function pushbutton8_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton8 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in stop.
function stop_Callback(hObject, eventdata, handles)
% hObject handle to stop (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
close_system('Name','PIDkongzhixiangying')
function begine_t_Callback(hObject, eventdata, handles)
% hObject handle to begine_t (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
model_open(handles)
NewStrVal = get(hObject,'String');
NewVal = str2num(NewStrVal);
assignin('base','begine_opening',NewVal);
% Hints: get(hObject,'String') returns contents of begine_t as text
% str2double(get(hObject,'String')) returns contents of begine_t as a double
% --- Executes during object creation, after setting all properties.
function begine_t_CreateFcn(hObject, eventdata, handles)
% hObject handle to begine_t (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 begine_O_Callback(hObject, eventdata, handles)
% hObject handle to begine_O (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
model_open(handles)
NewStrVal = get(hObject,'String');
NewVal = str2num(NewStrVal);
assignin('base','begine_over',NewVal);
% Hints: get(hObject,'String') returns contents of begine_O as text
% str2double(get(hObject,'String')) returns contents of begine_O as a double
% --- Executes during object creation, after setting all properties.
function begine_O_CreateFcn(hObject, eventdata, handles)
% hObject handle to begine_O (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 radiobuttonjin.
function radiobuttonjin_Callback(hObject, eventdata, handles)
% hObject handle to radiobuttonjin (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
%jinb=get(hObject,'Value')
% Hint: get(hObject,'Value') returns toggle state of radiobuttonjin
% --- Executes on button press in radiobutton5.
function radiobutton5_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton5 (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 radiobutton5
% --- Executes on button press in radiobuttonexit.
function radiobuttonexit_Callback(hObject, eventdata, handles)
% hObject handle to radiobuttonexit (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 radiobuttonexit
% --- Executes on button press in radiobutton6.
function radiobutton6_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton6 (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 radiobutton6
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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -