function y = BR_ramp(x)
% BR_ramp - ramp function
% On input:
%     x (float): input value
% On output:
%     y (float): 0 if x not in [0,1], else, x
% Call:
%     y = BR_ramp(0.2);
% Author:
%     T. Henderson
%     UU
%     Winter 2019
%

y = x.*(x>=0&x<=1);
return

if x<0|x>1
    y = 0;
else
    y = 1;
end
