Files
openairinterface5g/openair1/EMOS/LTE/POST_PROCESSING/scale_ideal_tp.m
T
2013-06-25 09:05:02 +00:00

18 lines
438 B
Matlab

function tp2 = scale_ideal_tp(tp1)
% tp2 = scale_ideal_tp(tp1)
% this function scales the tp1 obtained with the MI criterion to the one
% obtained by simulation.
load SISO_scaling.mat
% find the snr of tp in tp_mi
snr = interp1(tp_mi,snr_mi,tp1,'nearest','extrap');
% apply the offset of the nomadic antennas
% snr = snr - 4.7;
% lookup the new throughput
tp2 = interp1(snr_sim,tp_sim,snr,'nearest','extrap');
tp2(isnan(tp1))=nan;