【正文】
如果周期無(wú)線增長(zhǎng),相鄰譜線的間隔將趨于零,周期信號(hào)的離散頻譜就過(guò)渡為非周期信號(hào)的連續(xù)頻譜。信號(hào)的頻帶寬度與脈沖寬度成反比。y=h.*(e1e2)。e1=1/2+1/2.*sign(t+tao/2)。tao=*T。T=5。)*h。x=x1sym(39。Heaviside(t+)39。)axis([4,])endfunction x=time_fun_x(t)h=1。)title(39。)axis([4,])subplot(2,3,6)plot(t,f13),hold ony=time_fun_e(t)plot(t,y,39。)title(39。)axis([4,])subplot(2,3,5)plot(t,f12),hold ony=time_fun_e(t)plot(t,y,39。)title(39。)axis([4,])subplot(2,3,4)plot(t,f11),hold ony=time_fun_e(t)plot(t,y,39。)title(39。)axis([4,])subplot(2,3,3)plot(t,f10),hold ony=time_fun_e(t)plot(t,y,39。)title(39。)axis([4,])subplot(2,3,2)plot(t,f9),hold ony=time_fun_e(t)plot(t,y,39。)title(39。 subplot(2,3,1)plot(t,f1),hold ony=time_fun_e(t) plot(t,y,39。 f12=f11+f6。 f10=f9+f3。f8= *cos(2*pi*9*t/5)+0.*sin(2*pi*9*t/5)。 f6=.*cos(2*pi*7*t/5)+0.*sin(2*pi*7*t/5)。 f4=.*cos(2*pi*4*t/5)+0.*sin(2*pi*4*t/5)。 f2=.*cos(2*pi*2*t/5)+0.*sin(2*pi*2*t/5)。disp(d) t=8*a::Ta。 end if nargout==0 c=A_sym。 for k=1:NfA_sym(k+1)=double(vpa(subs(As,n,k),Nn))。 Bs=int(2*x*sin(2*pi*n*t/T)/T,t,a,Ta)。A0=2*int(x,t,a,Ta)/T。Nn=32。Nf=9。a=。 修改例51,將周期信號(hào)分解為前10次諧波的疊加,觀察運(yùn)行結(jié)果,能得出什么結(jié)論?解:function [A_sym,B_sym]=CTFShchsym1syms t n k x T=5。e2=1/2+1/2.*sign(ttao/2)。t=8*a::Ta。h=1。function y=time_fun_e(t)a=。Heaviside()39。)*h。 x1=sym(39?;?2次諧波+3次諧波+4次諧波+6次諧波39。r:39?;?2次諧波+3次諧波39。r:39。周期矩形波的形成—基波+2次諧波39。r:39。周期矩形波的形成—基波39。r:39。 f8=f7+f4+f5。 f6=f1+f2。 f4=.*cos(2*pi*4*t/5)+0.*sin(2*pi*4*t/5)。 f2=.*cos(2*pi*2*t/5)+0.*sin(2*pi*2*t/5)。disp(d) t=8*a::Ta。 end if nargout==0 c=A_sym。 for k=1:NfA_sym(k+1)=double(vpa(subs(As,n,k),Nn))。 Bs=int(2*x*sin(2*pi*n*t/T)/T,t,a,Ta)。A0=2*int(x,t,a,Ta)/T。Nn=32。Nf=6。a=。function [A_sym,B_sym]=CTFShchsymsyms t n k x T=5。上式常稱作截?cái)喔道锶~級(jí)數(shù)表示。在實(shí)際應(yīng)用中,我們可以用有限項(xiàng)的傅里葉級(jí)數(shù)求和來(lái)逼近。 () ()一般來(lái)說(shuō),傅里葉級(jí)數(shù)有無(wú)限個(gè)非零值,即任何具有有限個(gè)間斷點(diǎn)的周期信號(hào)都一定有一個(gè)無(wú)限非零系數(shù)的傅里葉級(jí)數(shù)表示。 f=[1,1,1,0]。 [f,k]=dconv(h,f,k1,k2)(k)=ε(k),重作上題。 f=[1,1,1,0]。,h) %調(diào)用 h=[1,1,1,1,0]。set(gca,39。)。)h=get(gca,39。)ylabel(39。)xlabel(39。 %在子圖3繪序列f(k)的波形title(39。)subplot(2,2,3)。)ylabel(39。)xlabel(39。stem(k2,f2) %在子圖2繪序列f2(k)的波形title(39。f1(k)39。k39。f1(k)39。 %確定卷積和f非零樣值的序號(hào)向量subplot(2,2,1)。 %計(jì)算序列f非零樣值的起點(diǎn)位置k3=length(f1)+length(f2)2。2.己知某LTI離散系統(tǒng),其單位響應(yīng)h(k)=ε(k)ε(k4),求該系統(tǒng)在激勵(lì)為f(k)= ε(k)ε(k3)時(shí)的零狀態(tài)響應(yīng)y(k),并繪出其時(shí)域波形圖。position39。h(3)=*h(3)。posit