Skip to content
Snippets Groups Projects
Commit ff9996d8 authored by Eric Wait's avatar Eric Wait
Browse files

Fix transfer function bar error when max is too close to the min

parent e4d37e40
Branches
No related tags found
No related merge requests found
......@@ -13,4 +13,10 @@ b = ((y2-y1) - a*(x2.^2-x1.^2)) ./ (x2-x1);
mm = (2*a*x1+b>=0)&(2*a*x3+b>=0);
ymin = y2(find(mm,1,'first'));
ymax = y2(find(mm,1,'last'));
if (isempty(ymin))
ymin = 0;
end
if (isempty(ymax))
ymax = 1;
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment