function Dflag=UL(d)
UL=10.05;
LL=9.95;
if d>LL && d<UL
    Dflag = 1;
else
    Dflag = 0;
end