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

📄 reinf3_11.m

📁 离散控制系统设计的MATLAB 代码
💻 M
字号:
%%%%%%%%%% Reinforcement Problem 3.11 %%%%%%%%%%%%   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                 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   ---- Another series/parallel connection ----%cleardisp('Reinforcement Problem 3.11')Ts = 1;                         % unity sampling period%----- build G1 --------------G1 = tf(6,[1 1 1],Ts)      		% G1%----- build G2 --------------G2 = tf([4 1],[16 -1],Ts)  		% G2 %----- build G3 --------------G3 = tf([7 0.5],[10 3],Ts)      % G3%----- build G4 --------------G4 = tf(4,[1 -0.3 0.81],Ts)     % G4(z)%---- connect the 4 blocks --------------T = G4*(G3+G2*G1)               % overall T(z)%----- zeros, poles & gain of T -------------[zT,pT,kT] = zpkdata(T,'v')[magzT,thetazT] = xy2p(zT)[magpT,thetapT] = xy2p(pT)kk = 0:40;resp = step(T,kk);              % step resp. of T(z)figurestem(kk,resp,'*'); grid         % plot responsetitle('Step response for Reinforcement Problem 3.11')xlabel('Discrete time k')%%%%%%%%%%

⌨️ 快捷键说明

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