2D-surface in 3d space from points without relationship

4 visualizzazioni (ultimi 30 giorni)
Hi, I'm new to matlab.
I have a set of points and I want to plot them as a 2d-surface in 3d space joining the points that are close.
How could I approach this problem?
I really appreciate any kind of help.

Risposta accettata

John D'Errico
John D'Errico il 21 Gen 2023
This is less than a simple problem if you give no information at all about the surface in question. If it is a single valued thing, so of the form z(x,y), where z is a SINGLE-valued function of and y. then you can use tools like scatteredInterpolant, griddata, or my own gridfit (found on the file exchange for free download.) Any of those tools will yied a surface. It will depend on how noisy is your surface, as to your choice of tool, since only gridfit will try to smooth the surface, to deal with noise.
However, IF your "surface" is something like the surface of a sphere, so a closed surface, then it is not single valued. In that case, modeling tools like those I mention above wiil fail miserably, since they presume a single valued relationship. In that case, you will be forced to use tools like CRUST, convex hulls, alpha shapes, etc.
But without even seeing your data, we can't really be more helpful. The crystal ball shows me nothing at all. If you want better help, then a picture can make thigns easier. If you want significantly better help, then post your data.

Più risposte (1)

Peter
Peter il 28 Nov 2024
No one has a good answer for this question. I also want to plot a 2D slice with 3D x,y,z coordinates and any value, be it temp, velocity, salinity etc. You would think this would be simple and bread and butter for matlab. Sorry but pythion is looking good at the moment.

Community Treasure Hunt

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

Start Hunting!

Translated by