自动控制原理Matlab程序作业(精)(4)

2019-07-13 16:57

% hObject handle to pushbutton6 (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 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

自动控制原理 Matlab 程序设计报告 % handles structure with handles and user data (see GUIDATA % --- Executes on button press in pushbutton9. function pushbutton9_Callback(hObject, eventdata, handles % hObject % eventdata % handles handle to pushbutton9 (see GCBO reserved - to be defined in a future version of MATLAB structure with handles and user data (see GUIDATA num = str2num(get(handles.edit1,'String'; den = str2num(get(handles.edit2,'String'; A = str2num(get(handles.edit5,'String'*(-1; num = [1 A]; G = tf(num,den; rlocus(G hold on; sgrid(0.707,[] hold off; % --- Executes on button press in pushbutton10. function pushbutton10_Callback(hObject, eventdata, handles % hObject % eventdata % handles handle to pushbutton10 (see GCBO reserved - to be defined in a future version of MATLAB structure with handles and user data (see GUIDATA num =

str2num(get(handles.edit1,'String'; den = str2num(get(handles.edit2,'String'; A = str2num(get(handles.edit5,'String'; num = [1 A]; sys=tf(num,den; [y,t]=step(sys; plot(t,y; grid on; % --- Executes on button press in pushbutton11. function

pushbutton11_Callback(hObject, eventdata, handles % hObject % eventdata % handles handle to pushbutton11 (see GCBO reserved - to be defined in a future version of MATLAB structure with handles and user data (see GUIDATA num = str2num(get(handles.edit1,'String'; den = str2num(get(handles.edit2,'String'; A = str2num(get(handles.edit5,'String'; 15

自动控制原理 Matlab 程序设计报告 num1 = [1 A]; sys=tf(num1,den; [Kc,p]=rlocfind(sys; set(handles.Kc,'string',Kc; X = real(p(1 Y = imag(p(1 set(handles.Xpoint,'string',num2str(X; set(handles.Ypoint,'string',num2str(Y; damp=sqrt(X(1,1^2/(X(1,1^2+Y(1,1^2; Wn=abs(X(1,1/damp; Tp=pi/(Wn*sqrt(1-damp^2; overshoot=exp(-pi*damp/sqrt(1-damp^2; Ts=3/(damp*Wn; deviation=Wn^2; set(handles.overshoot,'string',num2str(overshoot; set(handles.Ts,'string',Ts; set(handles.Tp,'string',Tp; set(handles.Wn,'string',num2str(Wn;

set(handles.damp,'string',num2str(damp; set(handles.deviation,'string',deviation; function edit5_Callback(hObject, eventdata, handles % hObject % eventdata % handles handle to edit5 (see GCBO reserved - to be defined in a future version of MATLAB structure with handles and user data (see GUIDATA % Hints: get(hObject,'String' returns contents of edit5 as text % str2double(get(hObject,'String' returns contents of edit5 as a double % --- Executes during object creation, after setting all properties. function

edit5_CreateFcn(hObject, eventdata, handles % hObject % eventdata % handles handle to edit5 (see GCBO reserved - to be defined in a future version of MATLAB 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' 16

自动控制原理 Matlab 程序设计报告 set(hObject,'BackgroundColor','white'; end 参考文献: 《 Matlab 及在电子信息类课程中的应用》 电子工业出版社 《 Matlab 与控制系统仿真实践》 北京航空航天大学出版社 17


自动控制原理Matlab程序作业(精)(4).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:内江师范学院 计科学院届毕业答辩工作的安排

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: