Suggestions on how to generate a mask

조회 수: 2 (최근 30일)
Ahmed Abdulla
Ahmed Abdulla 2020년 6월 22일
답변: Steven Lord 2020년 6월 22일
I have a matrix that is 1440x2880 of remote sensed temperatures from satallites, i was wondering if there is any way that i can mask all the data points in the United States. To make this clearer, i would like to create a matrix full of 0's and cells in the United cells will be expressed by 1's for example. But i was wondering if there is a way to do this
  댓글 수: 2
Geoff Hayes
Geoff Hayes 2020년 6월 22일
Ahmed - what do the dimensions of your matrix, 1440x2880, represent? Latitude and longitude? How would you correlate US positions to the matrix?
Ahmed Abdulla
Ahmed Abdulla 2020년 6월 22일
yup they basically represent the latitude and longitude, thats what im stuck on, i dont really know how to correlate them.

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

답변 (1개)

Steven Lord
Steven Lord 2020년 6월 22일
If you have Mapping Toolbox, read the data file containing the borders of the states (see the "Enter MATLAB" section of this blog post) and ask if the points in your temperature data are inside the union of the polyshape array containing all the states. The isinterior function will help you do that last step.

카테고리

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

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by