Info
This question is closed. Reopen it to edit or answer.
its my loop correct?
1 view (last 30 days)
Show older comments
Hi all..I got problem of my coding.I dont know where is wrong.when i plotted the graph the results come out is same.its my loop problem?Can anyone help me..This is my coding(not all coding juz a few sentences). %%%Throughput(1)
SINR_dB = 10*log10 ( SINR_inner ); SINR_not_dB = 10^((SINR_dB)/10); T_vals= -30:30;
for j=1:26 bd=(j-1)*freqstep; end for m_= 1:size(Mdata,1);
if Mdata(m_,4)==0;
Freq_Alloc_Percent = P;
else
Freq_Alloc_Percent = (1-P)/frf_n;
end
capacity(1,m_) = ((Df-bd)/Mdata(m_,1)*(log(1+ SINR_not_dB(1,m_))))*Freq_Alloc_Percent;
throughput_per_user = ( 0.6*capacity(1,m_));
end
throughput(sim,1) = mean(throughput_per_user);
P_vals_throughput = zeros(size(T_vals)); for jj = 1:length(T_vals); P_vals_throughput(1,jj) = (sum(throughput_per_user>T_vals(jj)))/(length(SINR_dB)); end P_cover_throughput(sim,:) = P_vals_throughput;
2 Comments
Image Analyst
on 2 Oct 2013
You forgot to attach your data file, or even an image of your plot. Use the paperclip icon - that's what it's there for. It seems the description of your problem is "the results come out is same" but I haven't the slightest idea what that means and why it's incorrect or bad.
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!