This function upsamples the input data, applies the FIR filter and then downsamples it.
y = upfirdn (x, h, p, q)
This is an Octave function. This function upsamples the input data in the matrix by a factor of n. Then the upsampled data is FIR filtered. After this, the resultant is downsampled.