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

📄 reinf2_8.m

📁 离散控制系统设计的MATLAB 代码
💻 M
字号:
%%%%%%%%%%% Reinforcement Problem 2.8 %%%%%%%%%%%%   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                 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --- Fourth-order System with Responses Due to Individual Poles ---%cleardisp('Reinforcement Problem 2.8')numG = [0.3 0.4 0.5];                      % numerator of G(z)denG = [1 -1.3 0.455 0.0628 -0.037];       % denominator of G(z)[rGoz,pGoz,otherGoz] = ...			residue(numG,[denG 0])         % residues, poles of G(z)/zdtime = [0:15];                            % sampled time data sequenceycmplx = cpole2k(pGoz(1),rGoz(1),dtime);   % response due to complex polesyreal1 = rpole2k(pGoz(3),rGoz(3),dtime);   % response due to 1st real poleyreal2 = rpole2k(pGoz(4),rGoz(4),dtime);   % response due to 2nd real poleyreal3 = rpole2k(pGoz(5),rGoz(5),dtime);   % response due to 3rd real poleytot = ycmplx+yreal1+yreal2+yreal3;        % ytot(k) is sum of the four%----- plot individual responses as separate plotsfigure        subplot(3,1,1)            %----- Response due to complex poles ----- stem(dtime,ycmplx,'o');gridtitle('Reinf 2.8: Due to complex poles at z=0.650e^{+/-j0.3949}')subplot(3,1,2)            %----- Response due to real poles ----- stem(dtime,yreal1,'*');gridhold onstem(dtime,yreal2,'filled')stem(dtime,yreal3,'o')hold offtitle('Real poles of G(z)/z: z=-0.2501 (solid); z=0.3502 (*);z = 0 (O)')subplot(3,1,3)            %----- Complete response ----- stem(dtime,ytot,'filled');gridtitle('Reinf 2.8: Complete response')%%%%%%%%%%

⌨️ 快捷键说明

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