shadow the area between two curves in a plot
Afficher commentaires plus anciens
in my figure i have plottet 3 curves. the first one is from the data gathered and the other two are the confidence interval. I now want to shadow the area between the confidencial interval (best in grey) but until now i failed miserably. Can someoene help me?
figure
subplot(3,1,1)
plot(average_a_A_plot_cont1,'DisplayName','average_a_A_plot_cont1'); %curve from the data
hold on
plot(ci_durch1(:,:)); %curves from the confidence interval
hold off
title('limited memory; memory length =5, umwsd 5, 25, 45 ');
ylim([0 1])
xlabel('Timesteps')
ylabel('Performance')
grid on
pbaspect([1 1 1])
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 17 Mai 2020
0 votes
This is a FAQ, so see the FAQ: https://matlab.fandom.com/wiki/FAQ#How_do_I_shade_the_region_between_two_curves.3F
With the code sample in the FAQ, you get:

Catégories
En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!