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

filter2 (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 = filter2(f, x)

y = filter2(f, x, shape)

Description

Applies a two-dimensional FIR filter.

Examples

Inputs

Name Description
f Specifies the 2D FIR filter to use. f is a 2D array of real or complex, double-precision, floating-point numbers.
x Specifies the signal to filter. x is a 2D array of real or complex, double-precision, floating-point numbers.
shape Specifies the size of the filtered signal. shape is a string that accepts the following values.

'full' Returns the full two-dimensional convolution. y is larger than x.
'same' (default) Returns the central part of the convolution. y is the same size as x.
'valid' Returns only the parts of the convolution that LabVIEW computes without zero-padded edges. y is smaller than x.

Outputs

Name Description
y Returns the filtered signal. y is a 2D array of real or complex, double-precision, floating-point numbers.

Examples

F = rand(2);
X = rand(4);
Y = filter2(F, X, 'full')

Related Topics

fftfilt
filter
filtfilt


Resources


 

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