?? exa090300_1.m
字號(hào):
%----------------------------------------------------------------------------
% exa090300_1.m, for fig. 9.3.1,
%----------------------------------------------------------------------------
clear all;
t0=.1;
ts=.001;
fc=250;
t=[-t0/2:ts:t0/2];
m=sinc(100*t);
c=cos(2*pi*fc*t);
% 信號(hào)的調(diào)幅;
u=m.*c;
figure(1)
subplot(3,2,1)
plot(t,m(1:length(t)));grid;
subplot(3,2,3)
plot(t,c(1:length(t)));grid;
subplot(3,2,5)
plot(t,u(1:length(t)));grid;
f=-0.5:1/256:0.5-1/256;
% 求待調(diào)信號(hào)、載波信號(hào)和調(diào)制信號(hào)的頻譜;
M=fft(m,256);
C=fft(c,256);
U=fft(u,256);
subplot(322)
plot(f,abs(fftshift(M)));grid;
subplot(324)
plot(f,abs(fftshift(C)));grid;
subplot(326)
plot(f,abs(fftshift(U)));grid;
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -