In the adsbexample.m script I'm getting an error: Array indices must be positive integers or logical values. Error in comm.internal.SignalSourceController/getSignalSource (line 181) obj.RadioAddress = radioAddress{radioNum};
조회 수: 1 (최근 30일)
이전 댓글 표시
채택된 답변
KSSV
2019년 1월 1일
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
추가 답변 (1개)
Ethem
2019년 3월 20일
You need to enter "1" at the prompt, to use the radio number "1" with address "0".
참고 항목
카테고리
Help Center 및 File Exchange에서 Communications Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!