Shade area between two curves
이전 댓글 표시
Hello,
I'm trying to fill the area between these two curves:

I have tried to use the jbfill.m function and to create a poligon for filling it without succes:
Any idea on how to fix the problem?
Thank you in advance for your help! (ps: I attach the .mat files of x and upper and lower curves)
채택된 답변
추가 답변 (2개)
For example,
x=linspace(0,2).';
yhigh=(x-1).^2+1;
ylow=-x+0.5;
h=area([ylow,yhigh]);
set(h(1),'FaceColor','w','EdgeColor','none')
Image Analyst
2021년 8월 14일
0 개 추천
See the FAQ, not only for this very FAQQY question but for lots of other good information too:
카테고리
도움말 센터 및 File Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

