Pause finder

Version 1.0.0.0 (7,05 KB) von Jan Lubina
Analyses data for free definable pauses and returns matching indices
600 Downloads
Aktualisiert 31 Mär 2016

Lizenz anzeigen

[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,:);

Zitieren als

Jan Lubina (2024). Pause finder (https://www.mathworks.com/matlabcentral/fileexchange/15814-pause-finder), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R13
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0

BSD