showing error in this line ? please do help us to get the output ?
조회 수: 2 (최근 30일)
이전 댓글 표시
m1=max(max(A(i:i+95,j:j+127)));
댓글 수: 1
답변 (1개)
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)));
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!