Pause finder
[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,:);
Cite As
Jan Lubina (2024). Pause finder (https://www.mathworks.com/matlabcentral/fileexchange/15814-pause-finder), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Digital and Analog Filters > Digital Filter Analysis >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | BSD |