I am getting error for Q
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
I am not sure, what value is needed for "Q". One in code is giving me error saying "Subscript indices must either be real positive integers or logicals."
0 件のコメント
回答 (1 件)
Rohan Kale
2017 年 8 月 5 日
0 投票
Firstly, as far as the error is concerned, to access any element of an array, its index has to be an integer, not a real number (which is according to your code). Secondly, why do you have to define a separate array for Q , instead use function * qfunc()* to compute CDF of the random variable.
2 件のコメント
MOHINI MODI
2017 年 8 月 5 日
Rohan Kale
2017 年 8 月 5 日
why do you require x? you already have defined EbNo array ,i.e., 0:10. As far as theory goes, BER = Q(sqrt(Eb/No)). Just use qfunc(sqrt(EbNo)). NOTE : as far ar error is concerned, see my last reply.
この質問は閉じられています。
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!