3-D plot
조회 수: 2 (최근 30일)
이전 댓글 표시
Dear Sir,
A pdf file is attached herewith, in which two figures are there (fig.(a) and fig.(b)). Fig.(a) is plotted by me and fig.(b) I have taken from one reference paper.
Both figures are plotted by considering three parameters. The basic difference between two plots lies in the connections of the points. In Fig(b), points are connected in rectangular pattern but in my case, points are getting connected in triangular pattern. I want to plot my figure (fig.(a)) also in rectangular pattern just like fig.(b)).
The command I am using is:
plot3(a,b,c,'.');
kkk=boundary(a,b,c);
trisurf(kkk,a,b,c,'Facecolor','interp');
Kindly help me in this regard.
Thanks in advance,
Anshul Jain
댓글 수: 1
Walter Roberson
2021년 12월 17일
https://www.mathworks.com/matlabcentral/fileexchange/20266-quadmesh-quadrilateral-mesh-plot can do the plotting once you have a quad mesh.
The problem is that boundary() is defined to return a triangulation. And the triangulation is obviously not very close to what you hoped for.
Have you experimented with different s parameter values for boundary() to see if that gets you a more pleasing triangulation?
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!