Member of the resampling class.
c = decimate(a, b)
c = decimate(a, b, n)
c = decimate(a, b, option)
c = decimate(a, b, n, option)
Uses a type 1 Chebyshev filter to resample a signal.
| Name | Description | ||||
| a | Specifies the original signal. a is a real vector. | ||||
| b | Specifies the new sampling rate. b is a positive real number. | ||||
| n | Specifies the order of the type 1 Chebyshev filter to use. n is a positive integer. | ||||
| option | Specifies the type of filter to use. option is a string that accepts the following values.
|
| Name | Description |
| c | Returns a resampled version of a at 1/b times the original rate. The length of c is 1/b times the length of a. c is a real or complex vector. |
A = [1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7];
B = 2;
N = 3;
C = decimate(A, B, N)