フィルターのクリア

error in the programming

2 ビュー (過去 30 日間)
vimal kumar chawda
vimal kumar chawda 2019 年 5 月 28 日
回答済み: madhan ravi 2019 年 5 月 29 日
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

回答 (1 件)

madhan ravi
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

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by