2d ternary contour map

4 ビュー (過去 30 日間)
Onkar Khadke
Onkar Khadke 2021 年 8 月 24 日
コメント済み: Onkar Khadke 2021 年 8 月 29 日
I have x, y, z independent data of same size . I also have a dependent data 'w' on these three xyz variables with same size. I want to plot a 2d ternary diagram wherein each side of the triangle depicts the variation of x y z,and inside of the triangle depicts the variation of w. Please help me with this regard. Thank you matlab community
  5 件のコメント
Chunru
Chunru 2021 年 8 月 26 日
Onkar Khadke
Onkar Khadke 2021 年 8 月 26 日
Thanks Chunru for your suggested links. However, implementing the code described in those links is challenging for a new user to MATLAB like me. If you can help me in understanding the scripts that are attached in those links, please help me with that regard. For your reference I am sharing my data file with you, so that you may give a try by implementing my data in those scripts. The filename A.mat contains my data, with first three columns should come on the three sides of the triangle and the fourth column in A.mat should vary inside the triangle with different colors. I hope that you will help me as I am a new user to MATLAB.
Also, sharing and helping improves us in some or the other way.
Thanks

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

採用された回答

KSSV
KSSV 2021 年 8 月 26 日
Read about delaunayTriangulation. This is your function.
Demo:
x = rand(10,1) ;
y = rand(10,1) ;
z = rand(10,1) ;
w = rand(10,1) ;
dt = delaunayTriangulation(x,y) ;
%
t = dt.ConnectivityList ;
trisurf(t,x,y,z,w) ;
shading interp ;
colorbar
If you are not able to get it, you may share your data.
  5 件のコメント
darova
darova 2021 年 8 月 29 日
What about positions of triangles? Dimensions?
Onkar Khadke
Onkar Khadke 2021 年 8 月 29 日
There will be just one triangle @darova. The dimensions of the triangle will be dictated by data points. Please refer to the attached figure .png file with the name screenshot in the earlier chats.

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by