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

1 回表示 (過去 30 日間)
ammara khurshid
ammara khurshid 2018 年 10 月 15 日
コメント済み: Image Analyst 2018 年 11 月 11 日
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 件のコメント
Walter Roberson
Walter Roberson 2018 年 11 月 11 日
We are spelling out our frustration at people claiming that their particular circumstances are "urgent".
Image Analyst
Image Analyst 2018 年 11 月 11 日
Since it's been almost a month, I guess the urgent deadline has passed and this no longer needs to be solved.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by