이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
how to get rid of the following error
조회 수: 1 (최근 30일)
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)))
Bibhu Das 2017년 12월 29일
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.
Jan 2017년 12월 30일
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.