Revision fec1958a3f9502fd8e3054cb0b95f55fc77ba527 authored by Max Turner on 12 April 2016, 00:46:24 UTC, committed by Max Turner on 12 April 2016, 00:46:24 UTC
1 parent ce75ca2
getThresCross.m
function Ind = getThresCross(V,th,dir)
%dir 1 = up, -1 = down
Vorig = V(1:end-1);
Vshift = V(2:end);
if dir>0
Ind = find(Vorig<th & Vshift>=th) + 1;
else
Ind = find(Vorig>=th & Vshift<th) + 1;
end
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...