Code covered by the BSD License  

Highlights from
FeatureFinder 2.4.1

image thumbnail

FeatureFinder 2.4.1

by

 

20 Aug 2012 (Updated )

A user-friendly tool for signal filtering and feature extraction. Well-suited to large data sets!

nFeature=MaxAmpWithTime(nData,Fs,nBL_Range,nTarg_Range)
function nFeature=MaxAmpWithTime(nData,Fs,nBL_Range,nTarg_Range)

% Feature description
if nargin==0
    nFeature=['Determines the maximum amplitude in the target window ',...
        'and corresponding time.'];        
    return
end

% Find maximum amplitude in target window
[nMaxAmp nTime]=max(nData(nTarg_Range));

% Determine corresponding time value (in seconds, where sample 1 = time 0)
nTime=(nTime+nTarg_Range(2)-2)/Fs;

nFeature=[nMaxAmp, nTime];

Contact us