Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

its my loop correct?

1 visualizzazione (ultimi 30 giorni)
noor shahida
noor shahida il 2 Ott 2013
Chiuso: MATLAB Answer Bot il 20 Ago 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 Commenti
Image Analyst
Image Analyst il 2 Ott 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 il 2 Ott 2013
Modificato: Jan il 2 Ott 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.

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by