3-D plot

1 view (last 30 days)
Anshul Jain
Anshul Jain on 17 Dec 2021
Commented: Walter Roberson on 17 Dec 2021
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 Comment
Walter Roberson
Walter Roberson on 17 Dec 2021
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?

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!