필터 지우기
필터 지우기

how increase a value

조회 수: 2 (최근 30일)
sachit
sachit 2015년 1월 12일
댓글: sachit 2015년 1월 12일
re=1:3:254; pe=3:5:256; for sa=L(re:pe,re:pe) maxi=max(sa) maximum=max(maxi) end in this i want if re=1 then pe=3 and increase the value re & pe by 1 every time

채택된 답변

David Sanchez
David Sanchez 2015년 1월 12일
re=1:3:254;
pe=3:5:256;
for sa=L(re:pe,re:pe) % no idea what is _L_ or what you try to do here
maxi=max(sa)
maximum=max(maxi)
end
if re == 1
pe = 3;
re = re +1;
pe = pe +1;
end
  댓글 수: 1
sachit
sachit 2015년 1월 12일
L is a matrix of 256*256*3 and your code is only giving 3 values. rather it must give 256 values

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by