gtfill(x,y1,y2,n,c1​,c2)

版本 1.2.0.0 (3.2 KB) 作者: William Hobbs
Fill the areas between two curves that cross at multiple pts, with different colors under each curve
857.0 次下载
更新时间 2015/3/10

查看许可证

This function fills the areas between two curves that intersect at multiple
points. The area where curve 1 > curve 2 is filled in one color, and the
area where curve 2 > curve 1 is filled in another color.
It performs piecewise interpolation so that the area is completely filled, even if the intersections are between defined points.

引用格式

William Hobbs (2024). gtfill(x,y1,y2,n,c1,c2) (https://www.mathworks.com/matlabcentral/fileexchange/34876-gtfill-x-y1-y2-n-c1-c2), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2011a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Curve Fitting Toolbox 的更多信息
致谢

参考作品: Shade area between two curves

启发作品: anomaly, fill_between

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.2.0.0

Updated to try to fix errors pointed out by Thijs and Masao Ashtine.

1.1.0.0

Changed title.

1.0.0.0