double_thresh

Version 1.0.0.0 (380 octets) par Forrest Collman
Function for a simple hysteretic Schmidt trigger on a vector
944 téléchargements
Mise à jour 29 août 2008

Aucune licence

This function performs a Schmidt trigger operation on a vector. A Schmidt trigger is a hysteretic thresholding operation, where the state of the trigger will stay low until the signal data crosses above the upperthreshold, then will stay high until it falls below the lowerthreshold.

%example code illustrates how to use the trigger and its benefit over a simple threshold.
signal=sin((0:.01:2*pi));
signal=signal+.2*rand(size(signal));
simplestate=signal>0;
state=double_thresh(signal,.1,-.1);
figure;
hold on;
plot(signal);
plot(simplestate,'g');
plot(state,'r');

Citation pour cette source

Forrest Collman (2026). double_thresh (https://fr.mathworks.com/matlabcentral/fileexchange/21254-double_thresh), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2007a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur AI for Signals dans Help Center et MATLAB Answers
Version Publié le Notes de version
1.0.0.0