How to get XYZ data in equal interval

1 次查看(过去 30 天)
Hello everyone!
I have a data which is in xyz form: x and y are distance measurements and z is the coresponding value. Now, there is some interval value in x and y, and I would like to have a new xyz data format in which 'x ' and 'y' should be equally spaced at every interval value of '20' (e.g. 0 20 40 60........4300) and the correspinding value of 'z' is also required. The data format that need to be prepared in equal interval is given below:
-----------------------------------------------------------------------------------------------------------
X Y Z
0 4382.26782195 65.0035629272
19.3784664354 4382.26782195 68.5368804932
38.7569328709 4382.26782195 68.5358276367
58.1353993063 4382.26782195 65.6181640625
77.5138657418 4382.26782195 61.0104675293
96.8923321772 4382.26782195 56.1530647278
116.270798613 4382.26782195 52.3486099243
.......
........
.........
4302.01954867 4382.26782195 -231.189361572
0 4362.52787681 80.1672363281
19.3784664354 4362.52787681 84.5006332397
38.7569328709 4362.52787681 84.704826355
58.1353993063 4362.52787681 81.1916122437
77.5138657418 4362.52787681 75.3585586548
96.8923321772 4362.52787681 69.1199645996
.............
...............
..............
-----------------------------------------------------------------------------------------------------------
I would greatly appreciate your time and help.
Thanks in advance.

采纳的回答

KSSV
KSSV 2020-7-28
Read about griddata, scatteredInterpolant.
  1 个评论
Rock Interpreter
Rock Interpreter 2020-7-31
Would you please mind in providing the script since I am beginner in this? Thanks in advance.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by