⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex8_1a.m

📁 离散控制系统设计的MATLAB 代码
💻 M
字号:
%%%%%%%%%%%%%%%%% Example 8.1(a) %%%%%%%%%%%%%%%%%   Discrete-Time Control Problems using        %%       MATLAB and the Control System Toolbox   %%   by J.H. Chow, D.K. Frederick, & N.W. Chbat  %%         Brooks/Cole Publishing Company        %%                September 2002                 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   ----  Proportional-only design  ----%cleardisp('Example 8.1(a)')Ts = 0.1;			             % sampling periodGp_s = tf(4,conv([2 1],[0.5 1])) % continuous processH_s = tf(1,[0.05 1])		     % continuous sensorHGp_s = H_s*Gp_s                 % continous plantHGp_z = c2d(HGp_s,Ts,'zoh')      % discrete plant, using ZOH optiondisp('******>'), pause figureucircle, hold on                 % add unit circlerlocus(HGp_z)                    % draw root-locusdzline(0.8),hold off             % add damping-ratio line           axis([-1.5 1.5 -1 1]);           % get reasonable plot areatitle('ex 8.1a - Small-area Root locus for P-only control')disp('find gain & CL poles for marginal stability')[kk1,pCL1] = rlocfind(HGp_z)     % user selects point in z-plane[mag_pCL1,theta_pCL1] = xy2p(pCL1);disp('******>'), pause disp('find gain & CL poles for CL poles with zeta = 0.8')[kk2,pCL2] = rlocfind(HGp_z)[mag_pCL2,theta_pCL2] = xy2p(pCL2);%%%%%%%%%%

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -