the function "helperPlo​tPositionE​rror"

조회 수: 1 (최근 30일)
Vu
Vu 2025년 4월 9일
댓글: Walter Roberson 2025년 4월 9일
I practice doing an example of radar simulation. During the implementation, I encountered the following error: "Index in position 2 exceeds array bounds. Index must not exceed 1".
The above error occurs when I use the function "helperPlotPositionError". The specific structure is as follows:
helperPlotPositionError(tgtPosTruth(:,:,1),time,tgtPosObs(:,firstTgtDet),detTime(firstTgtDet),scene.SimulationTime);
This is an example on the matlab website.
Can anyone help me answer, why is the above error and how to fix it?
Thank you
  댓글 수: 2
Cris LaPierre
Cris LaPierre 2025년 4월 9일
Which example? Please share a link to the doc page.
Walter Roberson
Walter Roberson 2025년 4월 9일
It sounds as if firstTgtDet exceeds 1 but tgtPosObs is something-by-1

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Detection에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by