findintercept(Yin,v​arargin)

版本 3.0.0.0 (14.6 KB) 作者: Ben Oeveren
Detects intercept at certain threshold with the input signal based on the given requirements.
192.0 次下载
更新时间 2016/3/19

查看许可证

% [up,down] = findintercept(Yin), detects the intercept with signal Yin
% Options: 'Threshold','MinGradient','InterceptWidthRange',...
% 'MinInterceptDistance','MinInterceptAvarage','MinPeakHeight'
% followed by a number and Method: 'Linear','Nearest'
%
% 'Threshold': Gives the intercept with Yin
% 'MinSlope': The slope calculated from the first neighbour peak to
% neighbour valley. Supports both single value and range.
% 'InterceptWidthRange': Minimal and maximal width between intercepting points.
% Supports both single value and range. Starts with first up or down. To
% force a start use 'StartPair'.
% 'MinInterceptDistance': Distance between intercept points of either downward
% or upward intercepts.
% 'MinInterceptAvarage': Avarage over points above or under the intercept.
% Supports both single value and two values for averages above and below threshold.
% 'StartPair': 0,'Up','Down','First'_ forces starting with an
% upward or downward slope. By default it will start without any
% pre-settings (0);
% 'NIntercepts': specifies the maximum number of intercepts
%
%
% Optional output:
% no output = figure with results
% varargout{1} = Av; %Average between intercept points
% varargout{2} = slope; %Slope of intercepting point
% varargout{3} = x; %x after interpolation
% varargout{4} = Yin; %Y after interpolation
%
% Ben van Oeveren, 19-03-2016: added startPair: 0 as default

引用格式

Ben Oeveren (2024). findintercept(Yin,varargin) (https://www.mathworks.com/matlabcentral/fileexchange/53069-findintercept-yin-varargin), MATLAB Central File Exchange. 检索时间: .

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

Community Treasure Hunt

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

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

% Ben van Oeveren, 19-03-2016: added startPair: 0 as default

2.0.0.0

% update 5-10-2015: added peakSum to output, added threshold arrays

1.0.0.0

Solved some issues