How can I plot multiple areas in the same graph?
이전 댓글 표시
I have 6 vectors and I want to make a plot of their areas, exactly like the image attached.

Is there any way to acomplished that? Thanks a lot!
채택된 답변
추가 답변 (2개)
Ullekh Gambhira
2018년 6월 16일
0 개 추천
I am facing the same issue, I solved it by using "Shade area between two curves" function by John Bockstege. The file exchange link for this function is below:
https://www.mathworks.com/matlabcentral/fileexchange/13188-shade-area-between-two-curves
It does not consider base value, but basically shades the area between two lines. So one line can be your vector and the other can be a baseline*ones(size(x)).
Hope this helps.
Regards, Ullekh
카테고리
도움말 센터 및 File Exchange에서 Discrete Data Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!