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

📄 ex2_10.m

📁 matlab仿真的文件包然后写出其具体功能(至少要20个字)。尽量不要让站长把时间都花
💻 M
字号:
nblocks=10;
n1=1; d1=[0.01,1]; n2=[0.17,1]; d2=[0.085 0];
n3=1; d3=[0.01,1]; n4=[0.15,1]; d4=[0.051,0];
n5=70; d5=[0.0067,1]; n6=0.21; d6=[0.15,1];
n7=130; d7=[1,0]; n8=-0.212; d8=1;
n9=-0.1; d9=[0.01,1]; n10=-0.0044; d10=[0.01,1];
blkbuild

Q=[1, 0, 0;  % with no other path entering path 1
   2, 1, 10; % path 2 gets inputs from paths 1 and 10
   3, 2, 0;  % path 3 gets input from path 2 only
   4, 3, 9;  % ... ... ...
   5, 4, 0;
   6, 5, 8; 
   7, 6, 0;
   8, 7, 0;
   9, 6, 0;
  10, 7, 0]; % path 10 gets input from path 7 only
INPUTS=1;    % the input port connects to path 1
OUTPUTS=7;   % the output port is formed by path 7

G=connect(a,b,c,d,Q,INPUTS,OUTPUTS); 

[A,B,C,D]=connect(a,b,c,d,Q,INPUTS,OUTPUTS);
zpk(ss(A,B,C,D))

g1=tf(1,[0.01,1]); g2=tf([0.17,1],[0.085,0]); g3=g1;
g4=tf([0.15,1],[0.051,0]); g5=tf(70,[0.0067,1]);
g6=tf(0.21,[0.15,1]); g7=tf(130,[1,0]); g8=0.212;
g9=tf([0.1,0],130*[0.01,1]); g10=0.0044*g1;
gg1=feedback(g7*g6,g8); %paths 6-8
gg2=feedback(gg1*g5*g4,g9); %paths 4-9
G=feedback(gg2*g3*g2,g10)*g1; %overall system
zpk(G)

⌨️ 快捷键说明

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