【正文】
頻域調(diào)制PM信號(hào)39。)grid onsubplot(2,2,4)plot(f(1:N/2),abs(VOP(1:N/2)))。title(39。Hz39。頻域調(diào)制信號(hào)39。subplot(2,2,2)plot(f(1:N/2),abs(VX(1:N/2)))。時(shí)域調(diào)制信號(hào)39。subplot(2,2,1)plot(vx)。VOP=fft(vop,N)。%通過(guò)相乘器b=fir1(80,)。%載波信號(hào)vp1=cos(2*pi*100*t+kp*vxpi/2)。%調(diào)相比例常數(shù)vx=square(2*pi*10*t,50)。t=n*T。%采樣頻率N=256。)grid on% Executes on button press in pushbutton8.function pushbutton8_Callback(hObject, eventdata, handles)% hObject handle to pushbutton8 (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)T=。)xlabel(39。title(39。時(shí)域調(diào)相信號(hào)39。)grid onsubplot(3,2,5)plot(vp)。)xlabel(39。title(39。時(shí)域載波信號(hào)39。)grid onsubplot(3,2,3)plot(vc)。)xlabel(39。title(39。時(shí)域調(diào)制信號(hào)39。subplot(3,2,1)plot(vx)。VC=fft(vc,N)。%載波信號(hào)vp=cos(2*pi*100*t+kp*vx)。%調(diào)相比例常數(shù)vx=square(2*pi*10*t,50)。f=n*fs/N。%采樣點(diǎn)數(shù)n=0:N1。%采樣間隔fs=1/T。頻域調(diào)制FM信號(hào)39。)grid onsubplot(2,2,4)plot(f(1:N/2),abs(VOF(1:N/2)))。title(39。Hz39。頻域調(diào)制信號(hào)39。subplot(2,2,2)plot(f(1:N/2),abs(VX(1:N/2)))。時(shí)域調(diào)制信號(hào)39。subplot(2,2,1)plot(vx)。vof=filter(b,1,vip)。%對(duì)調(diào)頻FM信號(hào)延時(shí)后,再加上pi/10的固定相移vif=vc.*vf1。vf=cos(2*pi*100*()+2*pi*kf*25*sawtooth(2*pi*()*10,))。%載波信號(hào)vp1=cos(2*pi*100*t+kp*vxpi/2)。%調(diào)制信號(hào)int_vx=25*sawtooth(2*pi*t*10,)。f=n*fs/N。kf=pi/2。%采樣點(diǎn)數(shù)n=0:N1。%采樣間隔fs=1/T。Hz39。頻域調(diào)頻信號(hào)39。)grid onsubplot(3,2,6)plot(f(1:N/2),abs(VF(1:N/2)))。title(39。Hz39。頻域載波信號(hào)39。)grid onsubplot(3,2,4)plot(f(1:N/2),abs(VC(1:N/2)))。title(39。Hz39。頻域調(diào)制信號(hào)39。)axis([0,300,])grid onsubplot(3,2,2)plot(f(1:N/2),abs(VX(1:N/2)))。title(39。f=n*fs/N。VC=fft(vc,N)。%調(diào)頻比例常數(shù)vf=cos(2*pi*100*t+kf*int_vx)。endvc=cos(2*pi*100*t)。%調(diào)制信號(hào)int_vx(1)=0。t=n*T。%采樣頻率N=256。)grid on% Executes on button press in pushbutton5.function pushbutton5_Callback(hObject, eventdata, handles)% hObject handle to pushbutton5 (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)T=。)xlabel(39。title(39。時(shí)域解調(diào)PM信號(hào)39。)grid onsubplot(2,2,3)plot(vop)。)xlabel(39。title(39。)grid onVX=fft(vx,N)。title(39。f=n*fs/N。vop=filter(b,1,vip)。%給調(diào)相信號(hào)加上pi/2的固定相移vip=vc.*vp1。%調(diào)制信號(hào)vc=cos(2*pi*100*t)。kp=pi/20。%采樣點(diǎn)數(shù)n=0:N1。%采樣間隔fs=1/T。Hz39。頻域調(diào)相信號(hào)39。)grid onsubplot(3,2,6)plot(f(1:N/2),abs(VP(1:N/2)))。title(39。Hz39。頻域載波信號(hào)39。)grid onsubplot(3,2,4)plot(f(1:N/2),abs(VC(1:N/2)))。title(39。Hz39。頻域調(diào)制信號(hào)39。)grid onsubplot(3,2,2)plot(f(1:N/2),abs(VX(1:N/2)))。title(39。%調(diào)相信號(hào)VP=fft(vp,N)。VC=fft(vc,N)。%調(diào)制信號(hào)vc=cos(2*pi*100*t)。%調(diào)相比例常數(shù)f=n*fs/N。t=n*T。%采樣頻率N=256。)grid on% Executes on button press in pushbutton3.function pushbutton3_Callback(hObject, eventdata, handles)% hObject handle to pushbutton3 (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)T=。)xlabel(39。title(39。時(shí)域解調(diào)FM信號(hào)39。)grid onsubplot(2,2,3)plot(vof)。)xlabel(39。title(39。)grid onVX=fft(vx,N)。title(39。f=n*fs/N。vof=filter(b,1,vif)。%對(duì)調(diào)頻FM信號(hào)延時(shí)后,再加上pi/10的固定相移vif=vc.*vf1。%載波信號(hào)vf=cos(2*pi*100*()+2*pi*kf*(sin(20*pi*())/(20*pi)))。%調(diào)制信號(hào)int_vx =sin(20*pi*t)/(20*pi)。kf=pi/2。%采樣點(diǎn)數(shù)n=0:N1。%采樣間隔fs=1/T。Hz39。頻域調(diào)頻信號(hào)39。)grid onsubplot(3,2,6)plot(f(1:N/2),abs(VF(1:N/2)))。title(39。Hz39。頻域載波信號(hào)39。)grid onsubplot(3,2,4)plot(f(1:N/2),abs(VC(1:N/2)))。title(39。Hz39。頻域調(diào)制信號(hào)39。)grid onsubplot(3,2,2)plot(f(1:N/2),abs(VX(1:N/2)))。title(39。VF=fft(vf,N)。%調(diào)頻信號(hào)VX=fft(vx,N)。endvc=cos(2*pi*100*t)。%調(diào)制信號(hào)int_vx(1)=0。kf=2000。t=n*T。%采樣頻率N=256。% Executes on button press in pushbutton1.function pushbutton1_Callback(hObject, eventdata, handles)% hObject handle to pushbutton1 (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)T=。% Outputs from this function are returned to the mand line.function varargout = jiaodu_tiaozhiANDjietiao_OutputF(hObject, eventdata, handles) % varargout cell array for returning output args (see VARARGOUT)。% Update handles structureguidata(hObject, handles)。else gui_mainf(gui_State, varargin{:})。 ischar(varargin{1}) = str2func(varargin{1})。if