Gridding data set and highlighting selection

조회 수: 6 (최근 30일)
amberly hadden
amberly hadden 2015년 7월 16일
답변: Muthu Annamalai 2015년 7월 16일
Dear all,
I have following data set
X Y filename
126.0000 40.0000 TX-130W4
126.5698 40.2369 TX-131W5
127.1396 40.4738 TX-130W6
127.7094 40.7107 TX-132W7
128.2792 40.9476 TX-130W8
128.8490 41.1845 TX-130W9
129.4188 41.4214 TX-130W10
129.9886 41.6583 TX-130W11
130.5584 41.8952 TX-130W12
Now I want to make a grid of lets say 0.05 degrees for X and Y and then highlight the data points on each grid nodes and finally output those node points with XYZ values. The reason I'm doing this I have very big data file which is just like a scattered plot I want to grid that region and select data points on each grid point (lets say 40 (130) then 40.05 (130) 40.1 (130) and so on similarly 126 (40) then 126.05 (40) 126.1(40) and so on). Numbers in brackets are either x-axis or y-axis. Please see the attached figure so the white dots are points I want to output. I will be very grateful if someone could help me in this task.
Thanks
  댓글 수: 1
Walter Roberson
Walter Roberson 2015년 7월 16일
Note: the data appears to be tab delimited. I change that to spaces in the posting so that it would be readable.

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

답변 (1개)

Muthu Annamalai
Muthu Annamalai 2015년 7월 16일
I recommend you to read basic plotting tutorial using MATLAB and use some standard plotting functions like below,
  1. plot function http://www.mathworks.com/help/matlab/creating_plots/using-high-level-plotting-functions.html
  2. text function http://www.mathworks.com/help/matlab/ref/text.html
  3. Tutorial on Graphics system http://www.mathworks.com/help/matlab/graphics.html
to annotate your graph axis.
I am not able to provide you a canned solution.
HTH

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by