i plotted two graphs just one above the other using "hold all' ,can i shade the region between these two graph and remaining lower region..?

i plotted age & depth ,two graph of varying depth but same age, the graph appers one above other with a space , i want to shade this space

Respuestas (1)

use fill
X = rand(1,100);
Y = rand(1,100)+1;
fill([1:100 , fliplr(1:100)] , [X , fliplr(Y)] , 'r')

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 6 de Mzo. de 2014

Respondida:

el 6 de Mzo. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by