Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

medfilt1 (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the filter implementation class.

Syntax

y = medfilt1(x)

y = medfilt1(x, n)

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.

Examples

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

Related Topics

filter
filter2


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit