Plotting 3D graph using measured points

5 ビュー (過去 30 日間)
Jesper
Jesper 2011 年 7 月 18 日
コメント済み: Kai Mun Chan 2020 年 8 月 31 日
Hi, I have a question regarding finding a way to easily display my measured data as a 3D plot. How do I make the plot the easiest way? I have over 7000 data points and each data point contain a x-, y- and z-value.
This is a selection of the data I wish to visually represent in [x, y, z] format:
[250, 24, 30]
[256, 50, 41]
[260, 67, 42]
[268, 65, 46]
[270, 28, 35]
I have a hunch the z-value is some kind of function to the x and y value. Every data point should be considered as a coordinate in the xyz-room and I whish to put all my 7000 points in that image.
So my question is, how can I implement this? I've tried using the surf and mesh functions but haven't made any real progress.

採用された回答

Arnaud Miege
Arnaud Miege 2011 年 7 月 18 日
Maybe try plot3.
Arnaud

その他の回答 (3 件)

Walter Roberson
Walter Roberson 2011 年 7 月 18 日
scatter3()
  1 件のコメント
Walter Roberson
Walter Roberson 2011 年 7 月 18 日
It appears that your data is not regularly spaced in x and y. If it _is_ regularly spaced, then even if the points are out of order, there are relatively simple mechanisms to get them in to a grid format that you could use surf() on. If your data is not regularly spaced but you want it to be, you could use the older griddata() or the newer triscatteredinterp http://www.mathworks.com/help/techdoc/ref/triscatteredinterp.html
But if you are happy to have the data be irregularly spaced then scatter3() should do fine.

サインインしてコメントする。


Patrick Kalita
Patrick Kalita 2011 年 7 月 18 日
You could try trisurf.

Jesper
Jesper 2011 年 7 月 19 日
Thanks, they were useful.
I also used the sftool and it works well. It even fits data to planes.
  1 件のコメント
Kai Mun Chan
Kai Mun Chan 2020 年 8 月 31 日
Hi,
sftool was not encouraged in R2019b. Matlab recommended cftool.
Cftool was able to plot for my surface.

サインインしてコメントする。

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by