fill color in stairs plot
Mostrar comentarios más antiguos
I have a two data samples
data1=rand(96,1); %random number with 96*1
data2=zeros(96,1)+mean(data1);
I would like to plot ''stairs'' of data1 and date 2 in one figure. data 2 is mean of data 1, now i would like to plot somting like this in stairs for example if data2 is > data1 fill with green color, other wise with yellow color. here red line is data1 and data2 is mean.

Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Annotations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



