Owning Class: resampling
Requires: MathScript RT Module
y = resample_fir(x, h, p, q)
y = resample_fir(x, h, p)
y = resample_fir(x, h)
Legacy Name: upfirdn
Resamples the input signal. resample_fir upsamples, applies a specified FIR filter, and downsamples a signal.
| Name | Description |
|---|---|
| x | Specifies the input signal. If x is a matrix, resample_fir resamples x along each column. |
| h | Specifies the FIR filter. If h is a matrix, resample_fir applies each column of h to the input signal. |
| p | Specifies the upsampling factor. p is a positive integer. The default is 1. |
| q | Specifies the downsampling factor. q is a positive integer. The default is 1. |
| Name | Description |
|---|---|
| y | Returns the resampled signal. |
y = resample_fir(1:10, [1 1], 2, 3)