making a surface in 3D space with sample some irregular points

Hi
I have a set of points with X, Y and Z. the point shows a Pareto front (they should show a smooth surface). The X, Y, Z of each point is. An example of the point is below. How can I make a surface with with these points? Do I need interpolation? Thank you in advance
0.010,0.053,0.020
0.016,0.040,0.019
0.001,0.087,0.016
0.009,0.042,0.024
0.001,0.079,0.031
0.014,0.071,0.002
0.020,0.024,0.028
0.015,0.061,0.002
0.023,0.015,0.046
0.017,0.033,0.014
0.000,0.090,0.010
0.024,0.046,0.004
0.008,0.079,0.002
0.005,0.025,0.044
0.001,0.115,0.004
0.000,0.116,0.010
0.017,0.043,0.005
0.029,0.011,0.018
0.026,0.025,0.008
0.030,0.047,0.003
0.018,0.036,0.013
0.012,0.047,0.006
0.020,0.028,0.024
0.017,0.037,0.015
0.040,0.017,0.010
0.013,0.072,0.001
0.009,0.094,0.000
0.012,0.043,0.017
0.034,0.010,0.015
0.001,0.117,0.004
0.002,0.078,0.006
0.002,0.056,0.038
0.005,0.045,0.025
0.010,0.050,0.021
0.013,0.037,0.021
0.006,0.118,0.001
0.008,0.096,0.001
0.006,0.067,0.013
0.000,0.061,0.046
0.013,0.066,0.004
0.005,0.026,0.054
0.000,0.101,0.012
0.031,0.019,0.007
0.018,0.022,0.040
0.025,0.032,0.005

 채택된 답변

Andrew Newell
Andrew Newell 2011년 12월 20일
You could use the code below as a starting point. First, get rid of the commas and read in your data as follows:
p=[0.010 0.053 0.020
...
0.025 0.032 0.005];
Then find the convex hull:
K = convhull(p);
Finally, plot the surface:
trisurf(K,p(:,1),p(:,2),p(:,3))
The matrix K provides three indices in each row that define a triangle (each index refers to the appropriate row of coordinates in your data matrix). If it doesn't correspond to the surface you want, you'll probably need to create K manually.

댓글 수: 2

You do not need to get rid of the commas.
p = [0.010,0.053,0.020
...
0.025,0.032,0.005];
should work with no problem at all.
how can i plot this map in matlab or python ?/
x=lat : utm system
y= long
z= magnetic data

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

추가 답변 (0개)

카테고리

태그

Community Treasure Hunt

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

Start Hunting!

Translated by