필터 지우기
필터 지우기

Info

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

index exceeds the matrix

조회 수: 1 (최근 30일)
indhu ravi
indhu ravi 2019년 3월 15일
마감: MATLAB Answer Bot 2021년 8월 20일
for i=1:length(D)
if (h_(i,T)~=D(i))
eps(T)=eps(T)+D(i,:);
end
end
  댓글 수: 2
dpb
dpb 2019년 3월 15일
Insufficient information...
Adam
Adam 2019년 3월 15일
Don't use length(D) if D is a matrix, use size( D, 1 ) in that case. If the 2nd dimension of D happened to be larger than the first then this code would crash.
That may have nothing to do with your actual error, but as dpb says, you've given us next to no information to help with that apart from guessing and I only guess on a Tuesday.

답변 (0개)

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

Community Treasure Hunt

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

Start Hunting!

Translated by