📄 h.m
字号:
Fm=10;
Fc=100;
Fs=1000;
N=1000;
k=0:N-1;
t=k/Fs;
x=sin(2.0*pi*Fm*t);
subplot(3,2,1);
plot(t(1:200),x(1:200));
axis([0,0.2,-1,1]);
Xf=abs(fft(x,N));
subplot(3,2,2);
stem(Xf(1:200));
y=modulate(x,Fc,Fs,'am');
subplot(3,2,3);
plot(t(1:200),y(1:200));
axis([0,0.2,-1,1]);
Xf=abs(fft(y,N));
subplot(3,2,4);stem(Xf(1:200));
z=modulate(y,Fc,Fs,'am');
subplot(3,2,5);
plot(t(1:200),z(1:200));
axis([0,0.2,-1,1]);
Xf=abs(fft(y,N));
subplot(3,2,6);stem(Xf(1:200));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -