Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

its my loop correct?

1 Ansicht (letzte 30 Tage)
noor shahida
noor shahida am 2 Okt. 2013
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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 Kommentare
Image Analyst
Image Analyst am 2 Okt. 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.
Jan
Jan am 2 Okt. 2013
Bearbeitet: Jan am 2 Okt. 2013
@noor shahida: Whenever you want to discuss a problem, it is required to explain the problem at first. Currently we see code only. So we do not have any argument to decide, if it is working correctly or not.

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by