error in the programming
조회 수: 1 (최근 30일)
이전 댓글 표시
Hallo
I have one error in the code and error is as below:
Index exceeds the number of array elements (232).
Error in SynchroTracking (line 76)
t_latency = ( false_Y(index_r) - false_Y(index_f) ) ./ ( 2 .* v(index_f) .* cos_a(index_f) .*
sin(alpha(index_f)) .* sin(zeta(index_f)));
Can anyone help me to understand the code error line?
Thank you
Kind regards,
Vimal
댓글 수: 0
답변 (1개)
madhan ravi
2019년 5월 29일
It means you’re trying to access an element which doesn’t even exist. For example:
x=1:5;
x(6) % 6 th element doesn’t exist
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!