plotting a 2D-characteristic map with 3rd parameter as lines

Hello,
Is there a way to create such a plot with Matlab?
There are three variables (distance, voltage, flow rate). The third variable should appear in the form of oblique lines in the 2D plot.
Regards
Lisa

4 件のコメント

darova
darova 2020 年 4 月 8 日
  • Is there a way to create such a plot with Matlab?
Yes. Do you have data or some fomrulas?
Lanau
Lanau 2020 年 4 月 9 日
@darova thanks for fast reply. I have detailed the characteristic map as below. Data for the shown dots of the area borders is attached.
There are no formulas or correlations between the data. The characteristic map visualizes the combination of three parameters at a machine. Each area stands for the same output you can achieve, when you use the factor combinations inside this area.
darova
darova 2020 年 4 月 9 日
And you want this area?
What about big area around? Where is it?
Lanau
Lanau 2020 年 4 月 9 日
I want it to look exactly like the picture I posted, with both areas. I created the picture with powerpoint, but that's not the best solution.
There are 3 variables (x,y,z), but instead of plotting them in a 3D- plot with 3 axes, I want them to plot in a 2D-graph with third axis/parameter shown as oblique lines (in this case the voltage). The border of each area can be created if you connect the data points out of the table I attached.
What do you mean with the big area around?

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

回答 (1 件)

darova
darova 2020 年 4 月 9 日

0 投票

Try patch
A = [1 0.32 6 11
1 0.18 12.2 12
1 0.3 21.5 15.4
1 0.45 24.5 16.65
1 0.76 24.5 19.3
1 0.95 19 18.9
1 0.98 12 17
1 0.6 6.2 13
2 0.3 12.2 13
2 0.2 24.1 16
2 0.26 33.2 19
2 0.48 36 21
2 0.78 36 23
2 0.99 31.8 23
2 0.83 22 19
2 0.59 16 16];
ix1 = A(:,1)<2;
ix2 = A(:,1)>1;
fill(A(ix1,2),A(ix1,3),'r','facealpha',0.5)
patch(A(ix2,2),A(ix2,3),'b','facealpha',0.5)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

質問済み:

2020 年 4 月 8 日

回答済み:

2020 年 4 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by