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
답변 (1개)
darova
2020년 4월 9일
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 Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

