当前位置:网站首页>FM signal, modulated signal and carrier
FM signal, modulated signal and carrier
2022-06-25 08:02:00 【studyer_ domi】
1、 Content abstract
A little
353- Can communicate 、 consulting 、 Answering question
2、 Content description
A little
3、 Simulation analysis
% The modulated signal is FM The signal , The FM signal is composed of 1KHz Modulated signal and 10kHz Of the carrier wave
clear all; % initialization
clc;
close all;
f=5000; % Carrier frequency 5KHz
fs=1000000; % sampling frequency
N=5000; % Number of sampling points
Ts=1/fs; % Sampling period
t=(0:Ts:(N-1)*Ts); % Simulation time
f1=500; % Modulation signal frequency 500Hz
msg=sin(2*pi*f1*t); % Modulation signal
figure,plot(msg);
figure,plot(cumsum(msg));
kf=0.0716; % Frequency modulation sensitivity
Signal1=exp(j*(2*pi*f*t)); % carrier
Signal=exp(j*(2*pi*f*t+2*pi*kf*cumsum(msg)));
figure,plot(imag(Signal1));
figure,plot(real(Signal1));
% Modulated signal ,FM The signal ,cumsum Is an accumulation function ;
phi_hat(1)=10; % Modulated signal ( PLL ) Enter the initial value 10
e(1)=0; % Initial value of frequency difference
phd_output(1)=0; % Demodulated signal output initial value
vco(1)=0; % VCO output initial value
kp=0.125; % Loop filter parameters
ki=0.125; % Loop filter parameters
% PLL
startplot=1; % Drawing start position
endplot=2000; % Drawing end position
figure(1); % At the window 1 mapping
subplot(2,2,2); % Multiple drawings are drawn on one plane
plot(t(startplot:endplot),msg(startplot:endplot)); % Plot function , The abscissa is time t
title(' Modulation signal ( frequency 1KHz)'); % Icon title
xlabel(' Time (seconds)'); % Abscissa annotation
ylabel(' Range '); % Ordinate annotation
grid;
figure(1);
subplot(2,2,1);
plot(t(startplot:endplot),real(Signal1(startplot:endplot)));
title(' carrier ');
ylabel(' Range ');
grid;
figure(1);
subplot(2,2,3);
plot(t(startplot:endplot),real(Signal(startplot:endplot)));
title('FM Modulated signal ');
ylabel(' Range ');
grid;
figure(1);
subplot(2,2,4);
plot(t(startplot:endplot),e(startplot:endplot));
title(' Demodulate the signal ');
ylabel(' Range ');
grid;
[f_Signal,y_Signal]=change_fft(fs,Signal);
[f_msg,y_msg]=change_fft(fs,msg);
[f_e,y_e]=change_fft(fs,e);
figure
plot(f_Signal,y_Signal)
xlabel frequency /Hz
ylabel amplitude
title Signal
xlim([0 100000])
figure
plot(f_msg,y_msg)
xlabel frequency /Hz
ylabel amplitude
title msg
xlim([0 5000])
figure
plot(f_e,y_e)
xlabel frequency /Hz
ylabel amplitude
title e
xlim([0 5000])
[f_Signal_imag,y_Signal_imag]=change_fft(fs,imag(Signal));
figure
plot(f_Signal_imag,y_Signal_imag)
xlabel frequency /Hz
ylabel amplitude
title Signal Imaginary part
xlim([0 100000])




4、 Reference paper
A little
边栏推荐
- Buckle 78: subset
- 剑指offer刷题(简单等级)
- Opencv minimum filtering (not limited to images)
- c#搭建ftp服务器并实现文件上传和下载
- Electronics: Lesson 012 - Experiment 13: barbecue LED
- 静态网页服务器
- 【视频】ffplay 使用mjpeg格式播放usb摄像头
- What are the problems with traditional IO? Why is zero copy introduced?
- c# winform panel自定义图片和文字
- 年后求职找B端产品经理?差点把自己坑惨了......
猜你喜欢

电子学:第008课——实验 6:非常简单的开关

飞机引气系统的建模与故障仿真

420-二叉树的层序遍历2(429. N 叉树的层序遍历、515.在每个树行中找最大值、116.填充每个节点的下一个右侧节点指针、104.二叉树的最大深度、111.二叉树的最小深度)

Electronics: Lesson 010 - Experiment 9: time and capacitors

电子学:第010课——实验 8:继电振荡器

Share the process requirements for single-layer flexible circuit board

How to use ad wiring for PCB design?

使用Adobe Acrobat Pro调整PDF页面为统一大小

Knowledge sharing 𞓜 conventional laminated structure of six layer PCB

Pcb|about FPC reinforcement type
随机推荐
PCB board design - automatic layout 2021-10-15
1464. maximum product of two elements in an array
Vscode is good, but I won't use it again
【论文学习】《VQMIVC》
时钟刻度盘的绘制
深度学习系列45:图像恢复综述
Pychart's wonderful setting: copy immediately after canceling the comment and bring #
唐老师讲运算放大器(第七讲)——运放的应用
Importer des données dans MATLAB
电子学:第012课——实验 11:光和声
【补题】2021牛客暑期多校训练营4-n
Mining microbial dark matter -- a new idea
Electronics: Lesson 010 - Experiment 9: time and capacitors
Linux上oracle和mysql的启动,关闭,重启
How to use ad wiring for PCB design?
Electronics: Lesson 012 - Experiment 11: light and sound
Six causes of PCB disconnection 2021-10-20
取消word文档中某些页面的页眉
洛谷P2839 [国家集训队]middle(二分 + 主席树 + 区间合并)
Technology blog | how to communicate using SSE