Thank you John for your reply.
I have added these two lines but the output still keeps changing. Now I decided to define UE and BS Positions by myself. And the problem comes back in another way, instead of changing, the Throughput stays the same for different user’s speeds and different distances between UE and BS.
SO I decided to check the SINR calculation formula.
Please could you help to figure out the Throughput the SINR calculation formula?
Please have a look at this (I don’t understand this part):
if obj.fastBlerMapping
%TODO: add tests
iSinr = round((sinr-obj.sinrMin)/obj.sinrResolution)+1;
nSinr = length(obj.sinrList);
iSinr(iSinr>nSinr) = nSinr;
iSinr(iSinr<1) = 1;
iBler = cqi+size(obj.blerCurves,1)*(iSinr-1);
bler = obj.blerCurves(iBler);
else
bler = zeros(size(cqi));
for i = 1:length(cqi)
if sinr(i)<obj.sinrList(1)
bler(i) = 1; % very low sinr
elseif sinr(i)>obj.sinrList(end)
bler(i) = 0; % very high sinr
else
bler(i) = interp1(obj.sinrList,obj.blerCurves(cqi(i),:),sinr(i));
end
Thank you!