How to perform "n" iterations and average those n values to single?

1 vue (au cours des 30 derniers jours)
ammara khurshid
ammara khurshid le 15 Oct 2018
Commenté : Image Analyst le 11 Nov 2018
Hi! Need an Urgent help. Here is the code i have written for throughput calculation. I want to average out my resulting values for n iterations to plot average value of throughput. Help me thanks in advance
Throughput_Per_Cell_Without_Sharing_A = zeros((N_A),2);
JJ = 0;
for i = 1 : size(Alocated_RB_User_A,1)
if sum(Alocated_RB_User_A(i,:)) ~= 0
for j = 1 : size(Selected_User_A,1)
for k = 1 : size(Selected_User_A,3)
if i == Selected_User_A(j,2,k)
JJ = JJ + 1;
Throughput_Per_Cell_Without_Sharing_A(JJ,1) = Throughput_Per_Cell_Without_Sharing_A(JJ,1) + 1;
Throughput_Per_Cell_Without_Sharing_A(JJ,2) = Throughput_Per_Cell_Without_Sharing_A(JJ,2)...
+ (Selected_User_A(j,4,k) * Selected_User_A(j,5,k));
end
end
end
end
end
x = 0;
y = 0;
for i = 1 : size(Throughput_Per_Cell_Without_Sharing_A,1)
if Throughput_Per_Cell_Without_Sharing_A(i,1) ~= 0
x = x + Throughput_Per_Cell_Without_Sharing_A(i,1);
y = y + Throughput_Per_Cell_Without_Sharing_A(i,2);
Temp_A(i,:) = [x y];
end
The 1st column of "Throughput_Per_Cell_Without_Sharing_A" is user index where 2nd is throughput value, also am reshaping the above matrix and renamed as "Temp_A" . I need 10 values of throughput against each user and take average of those 10 vales end
  6 commentaires
Walter Roberson
Walter Roberson le 11 Nov 2018
We are spelling out our frustration at people claiming that their particular circumstances are "urgent".
Image Analyst
Image Analyst le 11 Nov 2018
Since it's been almost a month, I guess the urgent deadline has passed and this no longer needs to be solved.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by