Data Reduction and sub set of data

2 ビュー (過去 30 日間)
amberly hadden
amberly hadden 2014 年 12 月 3 日
編集済み: Image Analyst 2014 年 12 月 9 日
Hello every body,
I'm new with Matlab. I want to write a code whcih can be used on my grid file to reduce it to region of my interest. I have lat lon and displacement values. I want to define a circle of radius 100Km from a central point(lat lon) so that everything outside the circle delete and I get a resultant grid file with data of my own interest.
I would like to pay some reward (as Im a student) for this work.
Please let me know if anybody is interested
Thanks

採用された回答

Image Analyst
Image Analyst 2014 年 12 月 3 日
  14 件のコメント
Image Analyst
Image Analyst 2014 年 12 月 9 日
Try this code:
numbers = xlsread('test.xls');
lats = numbers(:, 1);
lons = numbers(:, 2);
z = numbers(:, 3);
lat1 = 58.4
lon1 = 26.1
z1 = 1.65
lat2 = 58.5
lon2 = 27
z2 = 1.11
desiredLats = lats >= lat1 & lats <= lat2
desiredLons = lons > lon1 & lons <= lon2
desiredZs = z <= z1 & z >= z2
rowsToExtract = desiredLats & desiredLons & desiredZs
extractedRows = numbers(rowsToExtract, :)
amberly hadden
amberly hadden 2014 年 12 月 9 日
編集済み: Image Analyst 2014 年 12 月 9 日
hi its producing same data set insread
solved my problem
:) Thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by