Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

??? Index exceeds matrix dimensions.

조회 수: 2 (최근 30일)
Sushant Hiwale
Sushant Hiwale 2015년 4월 12일
마감: MATLAB Answer Bot 2021년 8월 20일
Error Line: xir{num_imgs}(1,:) = x_i_r(results(2,:),1)./tc;
I guess the error is in x_i_r(results(2,:),1)
details:
xir is 1*10 cell
x_i_r is 2048*2 single matrix
results is 2*2048 uint32 matrix
tc=1024
through the help pages I referred I understand that the mismatch in matrix dimensions causes above error but I could't solve above error. Please suggest a probable solution for the same. THe exact dimensions that must be followed.
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2015년 4월 12일
Sushant - have you verified that the error is with the line
x_i_r(results(2,:),1)
For example, if you put a breakpoint at this line and run your code, then the debugger will pause at this line. If you then try to evaluate this line (by copying and pasting it into the Command Window) do you see the Index exceeds matrix dimension error? If so, then the problem is most likely with how results is populated since you are using the contents of this matrix to access data in x_i_r.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by