4.0
Other
clear all;
close all;
clc;
signal = OFDM_TX_FRAME(2048,1447,512,12,1) ; %signal generation s(n)
power = mean(abs(signal).^2); % input power
backoff_dB = 12.5; % back off in linear scale
power_in_dB = 10*log10(power); % Back Off
fact_norm = sqrt(10^(-(backoff_dB+ power_in_dB)/10)); % back off
gain_imb = .0; % gain imabalance of modulator in linear scale
phase_imb = 0; % phase imbalance of modulator in degrees
dc_offset = 0.0 + 1i*0.0 ;% dc_offset
modulator_in = signal*fact_norm; % variable for storing input signal
[PA_input_before_compensation mixer_in] = modulator(modulator_in,gain_imb,phase_imb,dc_offset);
% spectrum monitoring
% Fs= 7.68e6;
% hPsd = spectrum.welch('Blackman',2048);
% hopts = psdopts(hPsd);
% set(hopts,'SpectrumType','twosided','NFFT',2048,'Fs',Fs,'CenterDC',true);
% PSD1 = psd(h
matlab
算法
仿真
数字
失真
No comment