lsim和rlocus函数实例Word格式.docx
- 文档编号:13070605
- 上传时间:2022-10-04
- 格式:DOCX
- 页数:11
- 大小:1.01MB
lsim和rlocus函数实例Word格式.docx
《lsim和rlocus函数实例Word格式.docx》由会员分享,可在线阅读,更多相关《lsim和rlocus函数实例Word格式.docx(11页珍藏版)》请在冰豆网上搜索。
比较对应的输入输出曲线,能发现什么规律?
计算Gi(jw)的值,其中i=1,…,6;
w分别等于1,2,3,10。
(2)利用rlocus汇出6个传递函数的根轨迹曲线。
提示:
题目
(1)既可由lsim完成,也可由simulink完成,建议两者都试一下,比较优劣。
答:
模型建立
t=0:
0.01:
10;
u1=2*sin(t);
u2=sin(t+3.1415926/3);
u3=sin(2*t);
u4=sin(2*t+3.1415926/3);
u5=sin(3*t);
u6=sin(3*t+3.1415926/3);
u7=sin(10*t);
u8=2*sin(10*t+3.1415926/3);
G1=tf(1,[11])
G2=tf(1,[111])
G3=tf([-11],[121])
G4=tf([-11],[111])
G5=tf([1
-2
1],[1
3
1])
G6=tf([1
2
得:
1.利用simulink建立其模型
G1:
G2:
G3:
G4:
G5:
G6:
2.各个模型的输出,在图形中展示。
G1:
红色G2:
蓝色 G3:
绿色 G4:
黑色G5:
黄色 G6:
紫色u1~u8灰色
U1:
u1=2sin(t)
>
lsim(G1,'
r'
G2,'
b'
G3,'
g'
G4,'
k'
G5,'
y'
G6,'
m'
u1,t)
grid
LinearSimulationResults
1
Amplitude
-1
-3
0 1 2 3 4 5 6 7 8 9 10
Time(seconds)
U2:
u2,t)
1.5
0.5
-0.5
-1.5
LinearSimulationResults
U3:
u3,t)
grid
0.8
0.6
0.4
0.2
-0.2
-0.4
-0.6
-0.8
U4:
u4,t)
U5:
u5,t)
U6:
u6,t)
3.比较对应的输入输出曲线,能发现什么规律?
4.Gi(jw)的值,其中i=1,…,6;
G1(j):
G1(2j):
G1(3j):
G1(10j):
G2:
G2(j):
G2(2j):
G2(3j):
G2(10j)
G3(j) G3(2j) G3(3j) G3(10j)
G4(j) G4(j) G4(j) G4(j)
G5(j) G5(j) G5(j) G5(j)
G6(j) G6(j) G6(j) G6(j)
5.利用rlocus汇出6个传递函数的根轨迹曲线。
rlocus(G1)
RootLocus
ImaginaryAxis(seconds-1)
0.1
-0.1
-4 -3 -2 -1 0 1
rlocus(G2,'
'
)
4
-4
-1 -0.8 -0.6
-0.4 -0.2 0 0.2 0.4
-2 0 2 4 6 8
G4:
-1 0 1 2 3 4 5 6
G5:
ImaginaryAxis(seconds)
-3 -2 -1 0 1 2
G6:
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- lsim rlocus 函数 实例