Method ao/downsample


  DOWNSAMPLE decimate AOs by an integer factor.
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
  DESCRIPTION: DOWNSAMPLE AOs by an integer factor. Can be applied to
               time-series, frequency-series, x-y, and c-data.
               Note that no anti-aliasing filter is applied to the
               original data!!!
  CALL:        b = downsample(a, pl)      - use plist to get parameters
               b = downsample(a1, a2, pl) - downsample both a1 and a2;
                                            b is then a 2x1 vector.
 
  Parameters Description
 
  EXAMPLES:   1) downsample x4; offset is set to default of 0
 
                 >> pl = plist('factor', 4);
                 >> b  = downsample(a, pl);
 
              2) downsample x2 with 1 sample offset
 
                 >> pl = plist('factor', 2, 'offset', 1);
                 >> b  = downsample(a, pl);
 
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Method Details
Access public
Defining Class ao
Sealed 0
Static 0

Parameter Description

Default

no description
Key Default Value Options Description
downsample
FACTOR 1 none The decimation factor. Should be an integer.
OFFSET 0 none The sample offset used in the decimation.

Example

plist('FACTOR', [1], 'OFFSET', [0])

back to top back to top

Some information of the method ao/downsample are listed below:
Class name ao
Method name downsample
Category Signal Processing
Package name ltpda
Can be used as modifier 1
Supported numeric types {'double'}




©LTP Team