How to plot a surface tangent to many points, or the smallest surface which covers all the points?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to plot a surface which covers many points in space.
The points are the solutions of a differential equation system.
I have tried different ways including the following:
1- I used meshgrid() and griddata() functions to generate uniformly distributed points and plot them using mesh() function. However, the figure was not so good.
2- In the same approach, I used the scatterInterpolant() function instead of griddata(), but the figure was worse than the first method.
3- I used convhull() and alphaShape() functions which worked in some cases, but in some others failed. As an example, I attach two figures here of the points and the obtained figure from this third method.
Moreover, in the cases in which the third idea works, I have problems with removing the black lines in the plotted surface. As you may see in the attached photo, there are many black lines in the plotted surface.
Any idea or help would be appreciated
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/756424/image.png)
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!