3-D plot

1 Ansicht (letzte 30 Tage)
Anshul Jain
Anshul Jain am 17 Dez. 2021
Kommentiert: Walter Roberson am 17 Dez. 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 Kommentar
Walter Roberson
Walter Roberson am 17 Dez. 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?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by