plotting a 2D-characteristic map with 3rd parameter as lines
Ältere Kommentare anzeigen
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
Antworten (1)
darova
am 9 Apr. 2020
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)
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

