How to remove this error?
1 次查看(过去 30 天)
显示 更早的评论
My code is giving following error. How can I fix it?
Index in position 1 exceeds array bounds (must not exceed 2048).
Error in Create_Obs_data (line 64)
synth = synth(1+t0_i:nt+t0_i,:);
0 个评论
回答(1 个)
Matt J
2021-11-2
编辑:Matt J
2021-11-2
The error message is telling you that synth only has 2048 rows, but nt+t0_i is greater than 2048, i.e., you are trying to index a position in synth that isn't there.
1 个评论
Image Analyst
2021-11-2
Before that line, put this:
whos synth % Don't put a simicolon!
What do you see in the command window?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Support Package for Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!