File Exchange

image thumbnail

Pause finder

version 1.0.0.0 (7.05 KB) by Jan Lubina
Analyses data for free definable pauses and returns matching indices

0 Downloads

Updated 31 Mar 2016

View License

[pause, err] = p_finder(DATA, samplerate, plength, plevelfrom, plevelto)
example:
--------
paus = p_finder(data,samplerate,0.5,-1.8,0.4);
%lookfor pauses > 0.5sec, pause = signal level between -1.8 and 0.4
[m,n,o]=size(paus);
p_vector=[];
for m = 1:n
p_vector(end+1:end+paus(2,m,1)-paus(1,m,1)+1) = [paus(1,m,1):paus(2,m,1)]';
end
p_vector=p_vector(:);
np_vector = [1:1:length(data(:,1))]';
np_vector(p_vector)=0;
np_ind = find(np_vector~=0);
data=data(np_ind,:);

Comments and Ratings (0)

Updates

1.0.0.0

BSD

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

MATLAB Online Live Editor Challenge

View the winning live scripts from faculty and students who participated in the recent challenge.

Learn more

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video