i plotted two graphs just one above the other using "hold all' ,can i shade the region between these two graph and remaining lower region..?
1 次查看(过去 30 天)
显示 更早的评论
i plotted age & depth ,two graph of varying depth but same age, the graph appers one above other with a space , i want to shade this space
0 个评论
回答(1 个)
Dishant Arora
2014-3-6
use fill
X = rand(1,100);
Y = rand(1,100)+1;
fill([1:100 , fliplr(1:100)] , [X , fliplr(Y)] , 'r')
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete Data Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!