upsample
Upsample the input signal by the factor osf
.
Calling sequence
y = upsample(x,osf)
y = upsample(x,osf)
Parameters
- x:
input signal
- osf:
over-sampling factor
- y:
output, upsampled, signal
input signal
over-sampling factor
output, upsampled, signal
Description
Insert osf
-1 zeros between each input sample
Example
y = upsample([1 2 3 4 5 6], 2); // y should be [1 0 2 0 3 0 4 0 5 0 6 0] |