How can i get a smooth curve for a singly curved shell ,surface plot for a 4*4 mesh.I cannot increase the mesh size.

조회 수: 2 (최근 30일)
Co-ordinates X Y Z
0 0 0.000000000000000
0 0.019050000000000 0.000000000000000
0 0.038100000000000 0.000000000000000
0 0.057150000000000 0.000000000000000
0 0.076200000000000 0.000000000000000
0.025368945899734 0 0.001269599062100
0.025368945899734 0.019050000000000 0.001269599062100
0.025368945899734 0.038100000000000 0.001269599062100
0.025368945899734 0.057150000000000 0.001269599062100
0.025368945899734 0.076200000000000 0.001269599062100
0.050766112417292 0 0.001692955556747
0.050766112417292 0.019050000000000 0.001692955556747
0.050766112417292 0.038100000000000 0.001692955556747
0.050766112417292 0.057150000000000 0.001692955556747
0.050766112417292 0.076200000000000 0.001692955556747
0.076163278934849 0 0.001269599062100
0.076163278934849 0.019050000000000 0.001269599062100
0.076163278934849 0.038100000000000 0.001269599062100
0.076163278934849 0.057150000000000 0.001269599062100
0.076163278934849 0.076200000000000 0.001269599062100
0.101532224834583 0 0.000000000000000
0.101532224834583 0.019050000000000 0.000000000000000
0.101532224834583 0.038100000000000 0.000000000000000
0.101532224834583 0.057150000000000 0.000000000000000
0.101532224834583 0.076200000000000 0.000000000000000
  댓글 수: 2
Walter Roberson
Walter Roberson 2013년 1월 3일
Is there a question of some kind of accuracy to be retained? Is there a data model to rely on? Or should the surface just be "whatever looks good" as long as it has those values at those particular locations?
Deviprakash Upadhyaya
Deviprakash Upadhyaya 2013년 1월 3일
Thank you for the reply. I want to get a smooth 3d surface plot for this mesh.I have used surf(X,Y,Z) but not getting a smooth curve on curved edges.

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

채택된 답변

Walter Roberson
Walter Roberson 2013년 1월 3일
Reduce the plot size until the largest axis is represented by adjacent pixels. The mesh plot will then be smooth.
Short of this, you need to decide what values the surface should have in-between your existing points, which will require doing a bunch of interpolation. You cannot, however, do interpolation without having an interpolating function. A linear interpolation function will not do you any good: that would result in a surface just as flat as you are already seeing.
If there are known equations for the datapoints, f(x,y), then you could apply the equation to the intermediate points. This could involve fitting some parameters of the equations.
If the equations for the datapoints are unknown, then you can choose an arbitrary interpolating function, for the sole purpose of making the surface look nice, without any concern about whether the values in-between are meaningful. There are routines available that help construct spline interpolations; people seem to like those routines. Myself I think they get badly overused, that people have entirely too much tendency to confuse the spline surface with being real information about the behavior of the function, but that's my opinion and others disagree. You could look at John D'errico's work in the File Exchange.

추가 답변 (2개)

Lalit Patil
Lalit Patil 2013년 1월 3일
plot3(X,Y,Z,'r.')

Azzi Abdelmalek
Azzi Abdelmalek 2013년 1월 3일
편집: Azzi Abdelmalek 2013년 1월 3일
x=reshape(X,5,[])
y=reshape(Y,5,[])
z=reshape(Z,5,[])
mesh(X,Y,Z)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by