How can i draw this type of graph?
조회 수: 1 (최근 30일)
이전 댓글 표시
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159949/image.png)
Hi everybody. What is the trick of this type of graph?
댓글 수: 4
Jon
2016년 4월 4일
Use the line() plotting command to draw each segment individually. You can use text() to write and place text where you'd like.
John D'Errico
2016년 4월 4일
Then just use a tool like pcolor on a user supplied surface, with a custom colormap to define the colored field.
답변 (1개)
Azzi Abdelmalek
2016년 4월 3일
x=[0 0.2 0.4 0.6 0.8 1]
y=[0 0.02 0.04 0.06 0.08 0.1]
cl='rgbkcmy'
for k=2:numel(x)
line([0 x(k) x(k) 0],[0 0 y(k) y(k)],'color',cl(k),'linewidth',5)
hold on
end
참고 항목
카테고리
Help Center 및 File Exchange에서 Directed Graphs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!