Subscript indices must either be real positive integers or logicals
Show older comments
what should i do to not get this error? >> Subscript indices must either be real positive integers or logicals.
1 Comment
per isakson
on 8 Aug 2017
Make sure that the values of sqrt(EbN0) and sqrt(2*EbN0) always are "real positive integers or logicals"
Accepted Answer
More Answers (2)
the cyclist
on 8 Aug 2017
1 vote
It looks like you have somehow created a variable with the name sqrt, and you are inadvertently accessing that variable, rather than the sqrt function.
3 Comments
Walter Roberson
on 8 Aug 2017
No, not in this particular case -- but that does certainly happen sometimes!
the cyclist
on 8 Aug 2017
Ah, you are right. I missed the evidence that the workspace didn't have an sqrt variable.
MOHINI MODI
on 8 Aug 2017
Edited: MOHINI MODI
on 8 Aug 2017
MOHINI MODI
on 10 Aug 2017
0 votes
Categories
Find more on Graphics Performance in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!