Info
この質問は閉じられています。 編集または回答するには再度開いてください。
its my loop correct?
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
Image Analyst
2013 年 10 月 2 日
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.
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!