フィルターのクリア

Plotting a 3D surface from measurement datas

4 ビュー (過去 30 日間)
Tom Engels
Tom Engels 2020 年 12 月 24 日
コメント済み: Star Strider 2020 年 12 月 24 日
Hello,
I am relatively new to Matlab and am currently trying to generate a 3D plot from multiple measurement data.
The task is the following:
Data series:
x = Boiler 1 %Name of the object.
y = [0 1.4 1.5 2 3] %Random time points
z = [300 323 345 500 255] %Recorded temperature
x = Boiler 2 %Name of the object
y = [0 1 2 3] %Random time points
z = [100 200 300 400] %Recorded temperature
...
This data can now be easily processed with the plot3 function. However, these are to be seen then accordingly only as line function.
I would like to unite these line functions now to a surface (like with surf).
So far I could not find an appropriate solution for this and hope that someone can help me here?
The data of the measurement series come from Excel. Is there also here a more elegant way than to implement these manually?
Many thanks and greetings

採用された回答

Star Strider
Star Strider 2020 年 12 月 24 日
I suspect the griddata function would do what you want to create the surface from your vectors, however I have no idea what your data actually are.
  2 件のコメント
Tom Engels
Tom Engels 2020 年 12 月 24 日
Thank you for your answer, i will give it a try.
Star Strider
Star Strider 2020 年 12 月 24 日
As always, my pleasure!
Note that ‘x’ needs to be a numeric array, not a character vector.
With more data, I could provide a more definitive solution. It should be possible to produce the surface you want, or at least a close approximation to it.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by