% Alexis function, written 13/07/2017
% Plot a shade between 2 lines y = f(x) on same x
function [shade_xy] = shadeLL(x,Line1,Line2,color,transp)
X = [x fliplr(x)];
y1 = Line1'; y2 = Line2';
Y = [y1 fliplr(y2)];
shade_xy = fill(X,Y,color,'FaceAlpha',transp,'EdgeAlpha',0.0); 
end


% x is a horizontal vector, ex. x = [2 3];
% Line1 and Line2 are vertical vector, ex. Line1 = [6 7]';
% color is 3 values vector, ex. color = [0.5 0.5 0.5];