Pre-ci test passed git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4000 818b1a75-f10b-46b9-bf7c-635c3b92a50f
18 lines
438 B
Matlab
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;
|