⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 am.m

📁 我做了很久的
💻 M
字号:
Fs=1000
Fc=100
N=1000
n=0:N-2
t=n/Fs
x=sin(pi*20*t)
z=cos(pi*200*t)
subplot(221)
plot(t,x)
xlabel('t(s)')
ylabel('x')
title('调制信号')
axis([0 0.1 -1 1])
subplot(222)
plot(t,z)
xlabel('t(s)')
ylabel('z')
title('载波信号')
axis([0 0.1 -1 1])
y1=modulate(x,Fc,Fs,'am')
subplot(223)
plot(t,y)
xlabel('t(s)')
ylabel('y')
title('已调信号')
[Pxx,f]=psd(y,1024,Fs,window,noverlap,dflag);
subplot(224)
plot(f,Pxx)
xlabel('t(s)')
ylabel('功率谱(Y)')
title('已调信号的功率谱')
grid

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -