- Upsample the input data in the matrix xx_resamp by a factor of the integer p by inserting zeroes, where p is the upsampling factor.
- FIR filter the upsampled signal data with the impulse response sequence given in the vector or matrix bpf. This is a convolution operation.
- Downsample the result by a factor of the integer by throwing away samples, where q is the downsampling factor.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/875445/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/875450/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/875455/image.png)