function y = ztrig(x,xl,xh)

% ZTRIG Schmitt-trigger
%   ZTRIG(X,XL,XH) simulates a Schmitt-trigger with transition level at XL and
%   XH.
%
% [+GenLib General Purpose Library+] Swiss Plasma Center EPFL Lausanne 2022. All rights reserved.
