当前位置:网站首页>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
边栏推荐
- Anaconda based module installation and precautions
- 黑点==白点(MST)
- This article uses pytorch to build Gan model!
- 現在通過開戶經理發的開戶鏈接股票開戶安全嗎?
- 洛谷P2486 [SDOI2011]染色(树链+线段树 + 树上区间合并 )
- How to use ad wiring for PCB design?
- Electronics: Lesson 010 - Experiment 9: time and capacitors
- 57. insert interval
- 使用Adobe Acrobat Pro调整PDF页面为统一大小
- 1464. maximum product of two elements in an array
猜你喜欢
Debugging mipi-dsi screen based on stm32mp157
DNS协议及其DNS完整的查询过程
时钟刻度盘的绘制
Anaconda based module installation and precautions
Import data into Matlab
allgero报错:Program has encountered a problem and must exit. The design will be saved as a .SAV file
What are the problems with traditional IO? Why is zero copy introduced?
电子学:第008课——实验 6:非常简单的开关
Opencv minimum filtering (not limited to images)
The fourth floor is originally the fourth floor. Let's have a look
随机推荐
Apache CouchDB 代码执行漏洞(CVE-2022-24706 )批量POC
27. remove elements
Startup, shutdown and restart of Oracle and MySQL on Linux
1464. maximum product of two elements in an array
50. pow (x, n) - fast power
C#控件刷新
电子学:第010课——实验 8:继电振荡器
深度学习系列48:DeepFaker
挖掘微生物暗物质——新思路
Can bus working condition and signal quality "physical examination"
Matlab代码格式一键美化神器
57. insert interval
CAN透传云网关CANIOT,CANDTU记录CAN报文远程收发CAN数据
协议和服务的区别?
socket问题记录
电子学:第009课——实验 7:研究继电器
Pcb|about FPC reinforcement type
将数据导入到MATLAB
現在通過開戶經理發的開戶鏈接股票開戶安全嗎?
2160. minimum sum of the last four digits after splitting