Member of the filter design class.
b = firrcos(n, fc, bw)
b = firrcos(n, fc, bw, fs)
b = firrcos(n, fc, bw, fs, type)
b = firrcos(n, fc, bw, fs, type, d)
b = firrcos(n, fc, bw, fs, type, d, w)
b = firrcos(n, fc, r, fs, s)
b = firrcos(n, fc, r, fs, s, type)
b = firrcos(n, fc, r, fs, s, type, d)
b = firrcos(n, fc, r, fs, s, type, d, w)
[b, a] = firrcos(n, fc, bw)
[b, a] = firrcos(n, fc, bw, fs)
[b, a] = firrcos(n, fc, bw, fs, type)
[b, a] = firrcos(n, fc, bw, fs, type, d)
[b, a] = firrcos(n, fc, bw, fs, type, d, w)
[b, a] = firrcos(n, fc, r, fs, s)
[b, a] = firrcos(n, fc, r, fs, s, type)
[b, a] = firrcos(n, fc, r, fs, s, type, d)
[b, a] = firrcos(n, fc, r, fs, s, type, d, w)
Designs a raised cosine FIR filter.
| Name | Description | ||||
| n | Specifies the order of the filter. n is a positive integer. | ||||
| fc | Specifies the cutoff frequency of the filter. fc must be greater than 0 and less than fs/2. | ||||
| bw | Specifies the transition bandwidth. bw must be greater than 0. [fc-bw/2, fc+bw/2] must fall in the range [0, fs/2]. | ||||
| fs | Specifies the sampling frequency. fs must be greater than 0. The default is 2. | ||||
| type | Specifies the type of filter to design. type is a string that accepts the following values:
|
||||
| d | Specifies the delay. d is a positive integer. The default is ceil(n/2). | ||||
| w | Specifies the window to apply to the filter in order to reduce the ripple in the frequency response. w is a vector with length n + 1. | ||||
| r | Specifies the transition bandwidth or the rolloff factor, depending on the value of s. The rolloff factor is equivalent to bw/(2*fc). | ||||
| s | Specifies the meaning of r. s is a string that accepts the following values:
|
| Name | Description |
| b | Returns the numerator of the filter under design. b is the forward filter coefficient of order n. b is a real vector. |
| a | Returns the denominator of the filter under design. a is the backward filter coefficient of order n. a is always [1]. |
firrcos(5, 0.5, 0.1, 2, 'sqrt')