Hello,
I'd like to fill the gap between two lines, but only when one line is above the other.
With the data file attached and the command:
plot(x,y1,'k',x,y2,'k:');hold on;xlim([x(1) x(end)]);jbfill(x',y1',y2',[.8 .8 .8],'none',0,.5);legend('y1','y2');hold off;
I can plot:
which always fills the gap between y1 and y2. But I'd like it to be filled only when y1>y2.
Any help on this is very welcome.
Best,
Best Answer