MATLAB: How to put a red border area in the graph

border areagraphMATLABplot

How to put a red border area in the graph ? I made a graph using this code:
figure(1);
fill([x; flipud(x)],[y1; flipud(y2)],'g'); hold on;
This is the graph I made:
The edge of the green area is black, but I would like the edge of the area was red. How can I do this?

Best Answer

you can do it as follows:
figure(1);
fill([x; flipud(x)],[y1; flipud(y2)],'g'), hold on,
plot(x, y1, flipud(x), flipud(y2), 'r')
I hope it works. Good luck!