Borrar filtros
Borrar filtros

How to put a red border area in the graph ?

2 visualizaciones (últimos 30 días)
Jesus
Jesus el 1 de Nov. de 2013
Comentada: sixwwwwww el 2 de Nov. de 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:
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 comentarios
sixwwwwww
sixwwwwww el 1 de Nov. de 2013
Can you show your graph?
Jesus
Jesus el 1 de Nov. de 2013
this is my graph:

Iniciar sesión para comentar.

Respuesta aceptada

sixwwwwww
sixwwwwww el 1 de Nov. de 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 comentarios
Jesus
Jesus el 2 de Nov. de 2013
sixwwwwww, thanks for the reply.
sixwwwwww
sixwwwwww el 2 de Nov. de 2013
You are welcome

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by