フィルターのクリア

Suggestions on how to generate a mask

3 ビュー (過去 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 Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by