﻿

# fir_rcos (MathScript RT Module Function)

LabVIEW 2011 MathScript RT Module Help

Edition Date: June 2011

Part Number: 373123B-01

»View Product Info

Owning Class: filter design

Requires: MathScript RT Module

## Syntax

b = fir_rcos(n, fc, bw)

b = fir_rcos(n, fc, bw, fs)

b = fir_rcos(n, fc, bw, fs, type)

b = fir_rcos(n, fc, bw, fs, type, d)

b = fir_rcos(n, fc, bw, fs, type, d, w)

b = fir_rcos(n, fc, r, fs, s)

b = fir_rcos(n, fc, r, fs, s, type)

b = fir_rcos(n, fc, r, fs, s, type, d)

b = fir_rcos(n, fc, r, fs, s, type, d, w)

[b, a] = fir_rcos(n, fc, bw)

[b, a] = fir_rcos(n, fc, bw, fs)

[b, a] = fir_rcos(n, fc, bw, fs, type)

[b, a] = fir_rcos(n, fc, bw, fs, type, d)

[b, a] = fir_rcos(n, fc, bw, fs, type, d, w)

[b, a] = fir_rcos(n, fc, r, fs, s)

[b, a] = fir_rcos(n, fc, r, fs, s, type)

[b, a] = fir_rcos(n, fc, r, fs, s, type, d)

[b, a] = fir_rcos(n, fc, r, fs, s, type, d, w)

Legacy Name: `firrcos`

## Description

Designs a raised cosine FIR filter.

Examples

## Inputs

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:

 'normal' Designs a normal raised cosine FIR filter. 'sqrt' Designs a square root raised cosine FIR filter.
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:

 'bandwidth' (default) r specifies the transition bandwidth. 'rolloff' r specifies the rolloff factor.

## Outputs

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].

## Details

The following table lists the support characteristics of this function.

 Supported in the LabVIEW Run-Time Engine Yes Supported on RT targets Yes Suitable for bounded execution times on RT Not characterized

## Examples

fir_rcos(5, 0.5, 0.1, 2, 'sqrt')

## Related Topics

Your Feedback!  Poor  |  Excellent    Yes No
 Document Quality?