How to build a 3D chart/plot from scattered/raw data?

2 ビュー (過去 30 日間)
Hugo
Hugo 2022 年 8 月 4 日
回答済み: Bjorn Gustavsson 2022 年 8 月 4 日
Hi,
I would like to build a 3D chart from raw data with coordinates (x,y,z). How can I build a 3D chart from raw/scattered values, instead of a function? I would like to build a chart with several surfaces/slides, with diferent values of z. How can I do it?
I thank you in advance
Best regards,

回答 (1 件)

Bjorn Gustavsson
Bjorn Gustavsson 2022 年 8 月 4 日
If you have a dense enough sampling you could use the scatteredInterpolant to get interpolated values at a regular grid and then you could use slice to display selected cuts through your volume. This is what you'd do if you have some "intensity"-data sampled at x,y,z if you want to display surfaces for sub-sets of x,y,z-data you might look at trisurf. So have a look at the help and documentation of those functions.
HTH

カテゴリ

Help Center および File ExchangeDeveloping Chart Classes についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by