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

📄 mpm.m

📁 通信中一些基本实验的程序AM、FM、ASK、FSK、PSK等等
💻 M
字号:
%FM modulation and demodulation,mfm.n
clear all;
close all;

Kf=5;
fc=10;
T=5;
dt=0.001;
t=0:dt:T;

%信源
fm=1;
%mt=cos(2*pi*fm*t)+1.5*sin(2*pi*0.3*fm*t);
mt=cos(2*pi*fm*t);
%FM调制
A=sqrt(2);
%mti=1/2/pi/fm*sin(2*pi*fm*t)-3/4/pi/0.3/fm*cos(2*pi*0.3*fm*t);
                                               %mt的积分函数
mti=1/2/pi/fm*cos(2*pi*fm*t);                   %mt的积分函数
st=A*cos(2*pi*fc*t+2*pi*Kf*mti);
figure(1);
subplot(211)
plot(t,st);hold on;
plot(t,mt,'r--');
xlabel('t');title('调相信号')

subplot(212)
[f sf]=T2F(t,st);
plot(f,abs(sf));
axis([-25 25 0 3]);
xlabel('f');title('调相信号频谱');

⌨️ 快捷键说明

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