How to remove this error?

조회 수: 1 (최근 30일)
Nisar Ahmed
Nisar Ahmed 2021년 11월 2일
댓글: Image Analyst 2021년 11월 2일
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,:);

답변 (1개)

Matt J
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
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 CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by