MATLAB Answers

In the adsbexample.m script I'm getting an error: Array indices must be positive integers or logical values. Error in comm.inter​nal.Signal​SourceCont​roller/get​SignalSour​ce (line 181) obj.RadioAddress = radioAddress{radioNum};

1 view (last 30 days)
Rakshit R
Rakshit R on 1 Jan 2019
Commented: Rakshit R on 6 Apr 2019

  0 Comments

Sign in to comment.

Accepted Answer

KSSV
KSSV on 1 Jan 2019
Check the variable radioNum ...it might be either negative or double 0....MATLAB accepts only posititve integers as indices...zero cannot be an index.
A = rand(10,1) ;
A(1) % no error
A(logical(0)) % no error because index can be logical 0 / 1
A(-1) % error becuase index cannot be negative
A(0) % error because index cannot be zero (double)

  0 Comments

Sign in to comment.

Sign in to answer this question.


Translated by