sig2ext.m

来自「雨流计数法」· M 代码 · 共 36 行

M
36
字号
function [ext, exttime] = sig2ext(sig, dt, clsn)
% SIG2EXT - searches local extrema from time course (signal),
% 
% function [ext, exttime] = sig2ext(sig, dt, clsn)
%
% SYNTAX
%   sig2ext(sig)
%   [ext]=sig2ext(sig)
%   [ext,exttime]=sig2ext(sig)
%   [ext,exttime]=sig2ext(sig, dt)
%   [ext,exttime]=sig2ext(sig, dt, clsn)
%
% OUTPUT
%   EXT     - found extrema from signal SIG,
%   EXTTIME - option, time of extremum occurrence counted from
%             sampling time of DT course (in seconds).
%             If no sampling time, DT = 1 is assumed.
%
% INPUT
%   SIG     - required, time course of loading,
%   DT      - option, descripion as above, scalar or vector of
%             the same length as SIG,
%   CLSN    - option, a number of classes of SIG (division before
%             search of extrema), no CLSN means no division into classes.
%
% The function caused without an output draws a course graph with
% the searched extrema.
%

%
% by Adam Nies硂ny
% ajn@po.opole.pl

error(nargchk(1,3,nargin))

% Sprawdza czy analizowany jest te

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?