필터 지우기
필터 지우기

Exclude calculation in a part of array

조회 수: 2 (최근 30일)
Ganesh kumar Badri narayan
Ganesh kumar Badri narayan 2017년 6월 22일
댓글: Adam 2017년 6월 22일
I have created 300 by 300 array and I am interested to perform calculation for the space as shown in attached image. How can I exclude some part of array from main calculation?
  댓글 수: 1
Adam
Adam 2017년 6월 22일
Assuming you have the area define by a logical mask then just apply the mask to your data. It will collapse it to 1d, but that is fine if it is a per-point calculation. You can then put the results back into the original shape after.

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

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by