How to put a red border area in the graph ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Jesus
am 1 Nov. 2013
Kommentiert: sixwwwwww
am 2 Nov. 2013
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/152804/image.png)
The edge of the green area is black, but I would like the edge of the area was red. How can I do this?
2 Kommentare
Akzeptierte Antwort
sixwwwwww
am 1 Nov. 2013
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!
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!