wvDecimate
wvDecimate filters and downsamples sigTOOL waveforms channels
Examples:
wvDecimate(fhandle, source, target, IntFlag, r)
wvDecimate(channels, source, target, IntFlag, r)
where
fhandle is a sigTOOL data figure handle
the channel data in the specified figure will be
updated
channels is a cell array of scchannel objects
source is the source channel number
target is the target channel to receive the result
(source and target may be equal)
IntFlag is a true false/flag.
If true the the downsampled data will be scaled and
cast to int16 on disc.
If false, data will be returned in double precision
r is the downsampling factor,
e.g. 10 to reduce the sample rate by 10
out=wvDecimate(....)
returns the sigTOOL channel cell array
wvDecimate applies a Chebyshev Type 1 lowpass filter to prevent aliaing
before downsampling. This has a cut-off frequency of 0.4x the new sample
rate
-------------------------------------------------------------------------
Author: Malcolm Lidierth 11/07
Copyright © The Author & King's College London 2007-
-------------------------------------------------------------------------