f2
(t
)
tet , t et ,t
0
0 1
t
2
试求卷积C(t)=f1(t)*f2(t),并绘制出f1、f2、
及卷积以后的波形。
20
p=0.1; t1= [0:p:1];
f1=t1பைடு நூலகம்*(t1>0);
t2= [-1:p:2];
f2=t2.*exp(-t2).*(t2>=0)+exp(t2).*(t2<0);
7
复数指数序列 x(n) e( j )n
x(n) e(0.1 j0.3)n (10 n 10)
n=[-10:10]; alpha=-0.1+0.3*j; x=exp(alpha*n); real_x=real(x); image_x=imag(x); mag_x=abs(x); phase_x=angle(x); subplot(2,2,1); stem(n,real_x) subplot(2,2,2); stem(n,image_x) subplot(2,2,3); stem(n,mag_x) subplot(2,2,4); stem(n,phase_x)
function [y,ny]= conv-m(x,nx,h,nh,p) % 信号处理的改进卷积程序
nyb=nx(1)+nh(1); nyc=nx(length(x))+nh(length(h));
ny=[nyb:p:nyc]; y=conv(x , h);
19
已知
f1(t) t (t)0 t 1
调用该函数 [x,n]=impseq(-2,8,2);
stem(n,x)
4
单位采样序列的另一种生成方法