filter_median (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

Owning Class: filter implementation

Requires: MathScript RT Module

Syntax

y = filter_median(x)

y = filter_median(x, n)

Legacy Name: medfilt1

Description

Applies a one-dimensional median filter of order n.

Examples

Inputs

Name Description
x Specifies the input signal.
n Specifies the order of the filter. If n is odd, y(k) is the median of x(k-(n-1)/2 : k+(n-1)/2). Otherwise, y(k) is the median of x(k-n/2 : k+n/2-1). For the edge points, LabVIEW assumes zeros to the left and right of x. The default is 3.

Outputs

Name Description
y Returns the filtered signal.

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

A = magic(6);
B = filter_median(A, 3)

Related Topics

filter
filter_2d

文章是否对您有帮助?

没有帮助