필터 지우기
필터 지우기

showing error in this line ? please do help us to get the output ?

조회 수: 2 (최근 30일)
venmal devi
venmal devi 2016년 1월 26일
답변: Star Strider 2016년 1월 26일
m1=max(max(A(i:i+95,j:j+127)));
  댓글 수: 1
Stephen23
Stephen23 2016년 1월 26일
편집: Stephen23 2016년 1월 26일
I guess this is indexing related, but there is not enough information. Please edit your question and give us the complete error message. This means all of the red text.

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

답변 (1개)

Star Strider
Star Strider 2016년 1월 26일
You have to be certain your ‘A’ matrix is large enough so that your addressing does not access elements outside its index range.
This works:
A = randi(99, 200);
i = 10;
j = 20;
m1=max(max(A(i:i+95,j:j+127)));

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by