double_thresh

版本 1.0.0.0 (380 字节) 作者: Forrest Collman
Function for a simple hysteretic Schmidt trigger on a vector
943.0 次下载
更新时间 2008/8/29

无许可证

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');

引用格式

Forrest Collman (2024). double_thresh (https://www.mathworks.com/matlabcentral/fileexchange/21254-double_thresh), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 AI for Signals 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0