Owning Class: resampling
Requires: MathScript RT Module
y = resample(x, p, q)
y = resample(x, p, q, n)
y = resample(x, p, q, n, beta)
y = resample(x, p, q, b)
[y, b] = resample(x, p, q)
[y, b] = resample(x, p, q, n)
[y, b] = resample(x, p, q, n, beta)
Resamples an input signal.
| Name | Description |
|---|---|
| x | Specifies the input signal. If x is a matrix, resample resamples x along each column. |
| p | Specifies the upsampling factor. p is a positive integer. |
| q | Specifies the downsampling factor. q is a positive integer. |
| n | Specifies the length of the FIR filter applied to the upsampled signal. The default is 10. |
| beta | Designs the Kaiser window. |
| b | Specifies the FIR filter. b is a vector. |
| Name | Description |
|---|---|
| y | Returns the resampled signal. |
| b | Returns the FIR filter applied to the upsampled signal. |
y = resample(1:10, 2, 3)