How to remove this error?

1 Ansicht (letzte 30 Tage)
Nisar Ahmed
Nisar Ahmed am 2 Nov. 2021
Kommentiert: Image Analyst am 2 Nov. 2021
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,:);

Antworten (1)

Matt J
Matt J am 2 Nov. 2021
Bearbeitet: Matt J am 2 Nov. 2021
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 Kommentar
Image Analyst
Image Analyst am 2 Nov. 2021
Before that line, put this:
whos synth % Don't put a simicolon!
What do you see in the command window?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Data Types finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by