191aPPendix a
for k=0:N-1
W(:,k+io)=exp(j*2*pi*k*n*Ts/T);
end
%
% --- PA parameters -------------------------------------
if ~ischar(IBO_dB)
p=2; % PA linearity parameter
g0=1; % gain (arbitrary)
Asat=1; % input saturation level
(arbitrary)
IBO=10^(IBO_dB/10); % input backoff
Pin=Asat^2/IBO; % scale input power to Pin
ph=pi/12; %pi/12 for TWTA
ta=0.25;
end
% --------- Simulation ----------------------------------------
%
if testing
error_min=20; % short run
trans_min=1e4; % min bits
else
error_min=400; % long run
trans_min=1e5; % min bits
end
trans_max=error_min/target; % max bits
%
BER=0; % initialize BER vector
EbN0_dB=0; % initialize SNR
iSNR=1; % SNR counter
go=1; % initialize loop
while go % run until max SNR
condition
error_num=0; ...