Bonjour ,
Je veux colorier la surface d'intersection des deux courbes matlab mais la programme ne se compile pas voici le programme :
Code HTML:
mu = 0;
mu1=5;
sigma1 = 1;
sigma2=2;
x = -2*sigma2:1e-3:6*sigma2; 
y1 = pdf('normal', x, mu, sigma1);
y2 = pdf('normal', x, mu1, sigma2);
hold on 
plot(x,y1,'r',x,y2,'k','LineWidth',1.5,'MarkerEdgeColor','r','MarkerFaceColor','r', 'MarkerSize',5);
legend('mu=0, sigma=1', 'mu=0, sigma=2')
title('Density functions')

h = area(x,.6);
set(gca,'Layer','top')
set(h,'LineStyle','-','LineWidth',2)
colormap Summer
Merci pour votre aide