Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

its my loop correct?

1 visualización (últimos 30 días)
noor shahida
noor shahida el 2 de Oct. de 2013
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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 comentarios
Image Analyst
Image Analyst el 2 de Oct. de 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 el 2 de Oct. de 2013
Editada: Jan el 2 de Oct. de 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.

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by