【正文】
上求下列連續(xù)時間信號的頻譜。x=(1+(t./2)).*(nm)。m=(t=2)。plot(2*t,x)。n=(t=2)。t=10:10。x=(1+(t./2)).*(nm)。m=(t=2)。plot(t2,x)。n=(t=2)。t=10:10。x=(1+(t./2)).*(nm)。m=(t=2)。)。xlabel(39。h(n)=x(n)*y(n)39。stem([0:length(h)1],h)。)。xlabel(39。y(n)39。stem([0:length(y)1],y)。)。xlabel(39。x(n))39。stem([0:length(x)1],x)。h=conv(x,y)。x=m.*u。m=exp(2*t)。);(4)已知x(t)=e –2 tu (t), y(t)=e tu (t) , 求:x(t) * y(t)t=10:10。xlabel(39。y=x*h39。stem([0:length(y)1],y)。)。xlabel(39。h39。stem([0:length(h)1],h)。)。xlabel(39。x39。stem([0:length(x)1],x)。y=conv(x,h)。(3)已知LTI離散系統(tǒng),x(n)=[1 1 1],h(n)=[0 1 2 3],求y(n)x=[1,1,1]。m=x.*y。x=().^n。)。xlabel(39。x(t)39。plot(t,x)。m=sin(t)。)。xlabel(39。x(t)39。 plot(t,x)。 t=0::5。(4)w0=2*pi。x=n.*m。m=(t=0)。axis([2,6,])。x=t(t=0)。)。xlabel(39。x(t)39。 plot(t,x)。(2)t=1::1。plot(t,x)。數(shù)字信號處理課程設(shè)計第1章 信號的時域分析 連續(xù)信號的時域分析用Matlab產(chǎn)生下列信號并與人工分析結(jié)果進行比較:(1) r (t)= t u (t) 1t10(2) x (t)=1+cos10 t 1t1(3) x (t)=(5e t 5e 3 t ) u (t) 1t5(4) x (t)=cos(2πt) cos(20πt) 0t5(5) x (t)=sin(t)/t 10t10(1)t=1::5。x=(t=0)。axis([2,6,])。 x=1+cos(10*t)。 ylabel(39。)。t39。(3)t=0::5。plot(t,x)。t=0::10。n=5*exp(t)5*exp(3*t)。plot(t,x)。 w1=20*pi。 x=cos(w0*t).*cos(w1*t)。 ylabel(39。)。t39。(5)t=10::10。x=m./t。ylabel(39。)。t39。 離散時間序列的時域分析及信號的運算、作圖并與理論值進行比較:(1)x(n)=2δ(n+n0) (2) x(n)=() n [sin()+cos()] n=4:4。y=[sin(*pi*n)+cos(*pi*n)]。stem(n,m)。h=[0,1,2,3]。subplot(3,1,1)。ylabel(39。)。Time index n39。subplot(3,1,2)。ylabel(39。)。Time index n39。subplot(3,1,3)。ylabel(39。)。Time index n39。u=(t=0)。n=exp(1*t)。y=n.*u。subplot(3,1,1)。ylabel(39。)。Time index n39。subplot(3,1,2)。ylabel(39。)。Time index n39。subplot(3,1,3)。ylabel(39。)。Time index n39。(5)已知信號x(t)=(1+t/2)[u(t+2)u(t2)], 求x(t+2),x(t2),x(t),x(2t),x(t)t=10:10。n=(t=2)。plot(t+2,x)。m=(t=2)。x=(1+(t./2)).*(nm)。t=10:10。n=(t=2)。plot(t,x)。m=(t=2)。x=(1+(t./2)).*(nm)。t=10:10。n=(t=2)。plot(t,x)。(1). 三角脈沖信號x1(t)= t=2::2。plot(t,x)。(t+1)*Heaviside(t+1)2*t*Heaviside(t)+(t1)*Heaviside(t1)39。Fw=fourier(xt,t,w)。convert39。piecewise39。FFP=abs(FFw)。fs=6。t=(0:N1)*Ts。y=fft(x)。Ws=2*pi*fs。*Ws/length(y)。w1=w(1:length(y)/2)。xlabel(39。)。幅度譜39。z=[39。 num2str(N) 39。 num2str(fs) 39。]。exp(t)的幅度譜39。2.用DFT計算下列信號的頻譜:(1) T0=16。T=T0/N。x=cos((pi/8)*t+pi/4)。f=1/T/N*(N/2:(N/21))。xlabel(39。)。magnitude39。(2)T0=。T=T0/N。x=cos(*pi)*t+cos(*pi*t)。f=1/T/N*(N/2:(N/21))。xlabel(39。)。magnitude39。 4.產(chǎn)生一個淹沒在噪聲中的信號x(t),例如由50Hz和120Hz的正弦信號以及一個零均值的隨機噪聲疊加而成。 50赫茲的頻率成分對應(yīng)50和50兩個坐標(biāo)點,120赫茲的頻率成分對應(yīng)120和120兩個坐標(biāo)點的頻率T0=1。 T=T0/N。x=sin(100*pi*t)+sin(240*pi*t)+ randn(size(t))。Xm=fft(x,N)/N。 stem(f,abs(fftshift(Xm)))。f (Hz)39。ylabel(39。)。幅度譜39。 利用DFT分析離散序列頻譜1. DFT計算序列的頻譜;N=51。 %若N為偶,n = N / 2: (N / 2 1)。 X=fft(x,N)。 subplot(2,1,1)。 ylabel(39。)。Time n39。 subplot(2,1,2)。ylabel(39。)。Frequency (rad)39。;