- 1、本文档共4页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
--
-
、已知某连续系统的系统函数
s
4 ,试用 Matlab 画出该系统的零极点
1
H ( s)
1)3
(s
图,并分析系统的稳定性。
clc,clear;
num=[1 -4];
den=[-2 3 -1];
zs=roots(num);
ps=roots(den);
figure(1);
plot(real(zs),imag(zs),o,real(ps),imag(ps),kx,markersize,12);
axis([0 4 -1 1]);
grid on;
sys=tf(num,den);
figure(2);
pzmap(sys);
axis([0 4 -1 1]);
系统不稳定
2、已知序列 h(n)= [1, 3,2,0,5]-1
f(n) = [1 , 2, 3, 1]2
求:y(n) = h(n) *f(n) ,并画出 h( n)、f(n)以及 y( n)的图形(要求在一个大图上画 3 个从上到下排列的子图) 。
n1=-1:3;
h=[1 3 2 0 5];
n2=2:5;
f=[1 2 3 1];
figure(1);
subplot(3,1,1)
stem(n1,h)
grid on;
xlabel( 输入序列 h(n))
subplot(3,1,2)
stem(n2,f)
grid on;
xlabel( 单位序列响应 f(n))
y=conv(h,f)
n=n1(1)+n2(1):n1(length(n1))+n2(length(n2))
subplot(3,1,3)
stem(n,y)
grid on;
xlabel( 输出响应 y(n))
、已经离散信号
z2
并写
3
f (n) 的 z 变换为 F ( z)
,求其单边逆 z 变换
f ( n)
z 2
z2
出其表达式。
F1=sym((z^2)/(z^2-z-2));
f1=iztrans(F1)
f1=simple(f1)
表达式: f1 =1/3*(-1)^n+2/3*2^n
4、已知序列 f (n) 2n e 3n u( n) ,求序列 f(n) 的单边 z 变换 F(z),并写出 F(z)的表
达式。
f1=sym((2^n)*exp^(-3*n));
F1=ztrans(f1);
F1=simple(F1)
表达式: F1 =z*exp^3/(z*exp^3-2)
5、用 matlab 产生一序列 f (n)
( 2)n cos(n)U (n) , 并画出其在自变量区间 [0,20]
上的波形。
clear;
n=0:20;
y=((-2).^n).*cos(n);
stem(n,y)
s2
1
的部分分式展开,写出其展开式,并根据理
6、求函数 F ( s)
( s 1)(s 2)( s 0.5)
论知识求出其拉普拉斯逆变换
f(t) ,写出 f(t) 的表达式。要求调用 residue 函数
求解。
clc,clear;
num=[1 0 -1];
a=conv([1 1],[1 -2]);
den=conv([1 0.5],a);
[r,p,k]=residue(num,den)
展开式: F(s)=0.4/(s-2)+0.6/(s+0.5)
表达式: f(t)=(0.4e^2t-0.6e^-0.5t)U(t)
1
e
4s
7、求函数 F ( s)
5s2
的拉氏逆变换 f(t) ,并写出 f(t) 的表达式。
clc,clear;
syms s;
F=(1-exp(-4*s))/5*s^2;
f=ilaplace(F)
表达式: f(t)=1/5*tU(t)-1/5(t-4)U(t-4)
8、 已知 x1(n)= [1,2,-3] -1
x2(n) = [1, 1, 1, 1]1
求: x(n) = x1(n) + x2(n) ,并画出 x1(n)、x2( n)和 x(n)的图形(要求在一个大图上画 3 个从上到下排列的子图) 。
clear;
x1=[1 2 -3];
n1=-1:1;
subplot(3,1,1);
stem(n1,x1);
xlabel(n1);
ylabel(x1(n));
x2=[1 1 1 1];
n2=1:4;
subplot(3,1,2);
stem(n2,x2);
xlabel(n2);
ylabel(x2(n));
n=-1:4;
x1=[x1 zeros(1,length(n)-length(n1))];
x2=[zeros(1,length(n)-length(n2)) x2];
x=x1+x2;
subplot(3,1,3);
stem(n,x);
xlabel(n);
ylabel(y(n)=x1(n)+x2(n));
3z
2
的零极点分
文档评论(0)