downsample
Downsample the input signal by an integer factor.
Calling sequence
y = downsample(x,osf)
y = downsample(x,osf)
Parameters
- x:
Input signal
- osf:
Over-Sampling Factor
- y:
Output, downsampled, signal
Input signal
Over-Sampling Factor
Output, downsampled, signal
Description
Keep only one sample every osf
input samples.
Example
y = downsample([1 2 3 4 5 6], 2); // y should be [1 3 5] |