% X = find_thresh(x,y,thresh) % % Given a graph (x,y) which is monotonically decreasing to the % right of the threshold, this % routine will find X such that y(X) is approximately equal % to alpha function X = find_thresh(x,y,alpha) % find the point to the left of the desired point i = min(find(y