载波频率估计我要分享

Carrier frequency estimation

matlab

关注次数: 337

下载次数: 0

文件大小: 455.55 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:应用背景FS = 32 * 10 ^ 6;%采样速率为32MHzFC = 6 * 10 ^ 6; ;%载波频率为6MHzdf = 0.1×FS; ;%载波频偏为3.信噪比= 20; ; ;%信噪比为20dBn = 1000; ; ; ;%数据码元个数T = 0:1 / FS:(N-1)/ FS;F0 = sqrt(2)*罪(2 * pi *(FC + DF)。* T +(π/2));S = AWGN(F0,信噪比,0);% 8比特量化中频采样仿真数据,并写入外部文本文件中问= 8;f_s = S /最大(ABS(s));%归一化处理q_s =圆(f_s *(2 ^(q-1)- 1));%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%关键技术K = 1:长度(q_s) ; ;b_s = dec2bin(q_s(K)+(q_s(K)& lt;0)* 2 ^ Q,Q);对1个问题:问 ; ; ; ;如果b_s(j)= = 1”和,和,和,和,和,肺结核= 1;和其他人,以及其他人和,和,和,和,和,肺结核= 0;和,和,结束,结束 ; ; ; ;fprintf(FID,“%d”,TB); ;最后,结束了 ; ;fprintf(FID,“ ”);终点


English Description:

Application background: FS = 32 * 10 ^ 6;% sampling rate: 32mhz, FC = 6 * 10 ^ 6; & nbsp;% carrier frequency: 6mhz, DF = 0.1 × FS; & nbsp;% carrier frequency offset: 3. Signal to noise ratio: 20; & nbsp;% signal to noise ratio: 20dbn = 1000; & nbsp; & nbsp;% number of data symbols: T = 0:1 / FS: (n-1) / Fs; F0 = sqrt (2) * (2 * pi * (FC + DF). *T + (π / 2)); s = AWGN (F0, SNR, 0);% 8 bits quantize if sampling simulation data and write it into external text file q = 8; F_ S = s / max (ABS (s));% normalized Q_ S = circle (f)_ S * (2 ^ (Q-1) - 1));%%%%%%%%%%%%%%%%%%% key technology k = 1: length (Q-1)_ s) ; ;b_ s = dec2bin(q_ s(K)+(q_ S (k) & lt; 0) * 2 ^ Q, q); for one question: ask & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; if B_ S (J) = = 1 "and, and, and, and, and, tuberculosis = 1; and others, and, and, and, and, and, and, tuberculosis = 0; and, and, end, end & nbsp; & nbsp; & nbsp; & nbsp; fprintf (FID,"% d ", TB); & nbsp; finally, end & nbsp; & nbsp; fprintf (FID," - R / N "); endpoint


代码预览