...
- Not used (as of 2015-03-23)
...
Example
x = D.recording{i}.ts.pleth.Time;
y = squeeze( D.recording{1}.ts.pleth.Data);
flags.timeunits = 'minutes';
flags.use_defaults = true;
P = peakdetect_run( y, x, flags );
figure, plot(P.ratex_seconds, P.ratey_bpm), xlabel('Time (seconds)'), ylabel('Rate (bpm)')