Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

I am getting error for Q

1 Ansicht (letzte 30 Tage)
MOHINI MODI
MOHINI MODI am 5 Aug. 2017
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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."

Antworten (1)

Rohan Kale
Rohan Kale am 5 Aug. 2017
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 Kommentare
MOHINI MODI
MOHINI MODI am 5 Aug. 2017
Using qfunc() giving same error.
Rohan Kale
Rohan Kale am 5 Aug. 2017
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.

Diese Frage ist geschlossen.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by