How to perform "n" iterations and average those n values to single?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
2018년 11월 11일
We are spelling out our frustration at people claiming that their particular circumstances are "urgent".
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 Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!