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

📄 ex3_4.m

📁 离散控制系统设计的MATLAB 代码
💻 M
字号:
%%%%%%%%%%%%%%%%%% Example 3.4 %%%%%%%%%%%%%%%%%%%   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                 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   ---- Feedback connection ----%cleardisp('Example 3.4')numG = 0.2*[1 -0.85]a = 0.9*exp(j*pi/4);  		        denG = conv([1 -a],[1 -conj(a)])   % forward transfer functiondisp('******>'), pause G = tf(numG,denG,1)                % ..with unity sampling period [zG,pG,kG] = zpkdata(G,'v')xy2p(pG);                          % forward-path poles in polar formnumH = [1 -0.3]denH = conv([1 -0.8],[1 -0.1])     % feedback transfer functionH = tf(numH,denH,1)                % ..with unity sampling period[zH,pH,kH] = zpkdata(H,'v')disp('******>'), pause T = feedback(G,H)                  % closed-loop system[zT,pT,kT] = zpkdata(T,'v')        % CL zeros,poles,gainxy2p(pT);                          % CL poles in polar formdisp('******>'), pause [resp, dt] = step(T);              % compute step respfigureplot(dt(1:150), resp(1:150), '-o'),grid    % plot step response with stem optiontitle('Step response for Example 3.4')xlabel('Time (s)')%%%%%%%%%%

⌨️ 快捷键说明

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