2D-surface in 3d space from points without relationship
7 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
採用された回答
John D'Errico
2023 年 1 月 21 日
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.
0 件のコメント
その他の回答 (1 件)
Peter
2024 年 11 月 28 日
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.
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!