资 源 简 介
清除所有 ;
关闭所有 ;
clc ;
信号 = OFDM_TX_FRAME(2048,1447,512,12,1) ;%信号一代 s(n)
功率 = mean(abs(signal).^2) ;%输入的功率
backoff_dB = 12.5 ;线性标尺退后的 %
power_in_dB = 10*log10(power) ;%退后
fact_norm = sqrt (10 ^ (-(backoff_dB+ power_in_dB)/10)) ;%退后
gain_imb =.0 ;%增益调制器中线性刻度 imabalance
phase_imb = 0;%相不平衡调制器以度为单位的
dc_offset = 0.0 + 1i * 0.0 ; %dc_offset
modulator_in = 信号 * fact_norm;%变量用于存储输入的信号
[PA_input_before_compensation mixer_in] = modulator(modulator_in,gain_imb,phase_imb,dc_offset);
%频谱监测
%Fs = 7.68e6 ;
%hpsd = spectrum.welch("Blackman",2048) ;
%hopts = psdopts(hPsd) ;
%set(hopts,"spectrumtype","twosided","nfft",2048,"fs",fs,"centerdc",true);
%Psd1 = psd(hPsd,modulator_in,hopts) ;
%Psd2 = psd(hPsd,mixer_in,hopts) ;
%data1 = dspdata.psd ([PSD1。数据],PSD1。频率,"Fs",财政司司长) ;
%data2 = dspdata.psd ([PSD2。数据],PSD2。频率,"Fs",