Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
how to get rid of the following error
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
q=1:t-1;
throughput_E = Bmax*log2(1+p_fix(t)*gamma(t)/symsum(p_fix(q,1,t-1).*gamma(t)))
If i run the code i am getting Subscript indices must either be real positive integers or logicals.
Error in throughput_E =Bmax*log2(1+p_fix(t)*gamma(t)/symsum(p_fix(q,1,t-1).*gamma(t)))
1 comentario
KSSV
el 29 de Dic. de 2017
Related to this: https://in.mathworks.com/matlabcentral/answers/374883-how-to-overcome-undefined-function-sum. In that link your code is not working..here you are getting a different error. :(
Respuestas (2)
Bibhu Das
el 29 de Dic. de 2017
This kind of error is appearing may be because of the q value defined. If the q value at t-1 becomes negative or zero and the function is unable to take negative value. Hope it gives some help. Thanks.
0 comentarios
Jan
el 30 de Dic. de 2017
You have redefined a function by an array. Maybe this is "gamma", "log2", "p_fix" or "symsum". Without seeing the complete code, it is impossible to guess, which of these symbols cause the problem. But you can use the debugger to find this information. Please debug your code by your own before you ask the forum.
0 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!