Skip to content

Commit

Permalink
Removed Control on signal length
Browse files Browse the repository at this point in the history
  • Loading branch information
GiuliaDAP authored May 10, 2018
1 parent a561768 commit 9c5c130
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Main_HRV_Analysis.m
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,6 @@
if isa(subID,'cell'); subID = string(subID); end


% Control on signal length

if (strcmp(InputFormat, 'ECGWaveform') && length(InputSig)/HRVparams.Fs< HRVparams.windowlength) ...
|| (strcmp(InputFormat, 'PPGWaveform') && length(InputSig)/HRVparams.Fs<HRVparams.windowlength) ...
|| (strcmp(InputFormat, 'RRIntervals') && t(end)/HRVparams.Fs<HRVparams.windowlength)
error('Error: imput signal or RR interval time series is shorter than the desired analysis windows (%i s).', HRVparams.windowlength)
end



% Start HRV analysis
try
Expand Down

0 comments on commit 9c5c130

Please sign in to comment.