Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

fftshift (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: transforms

Requires: MathScript RT Module

Syntax

c = fftshift(a)

c = fftshift(a, b)

Description

Computes the FFT shift spectrum.

Examples

Inputs

Name Description
a Specifies a vector or matrix.
b Specifies whether to perform swapping in the first or second dimension of a signal. b is an integer that accepts the following values.

1 Performs swapping in the first dimension.
2 Performs swapping in the second dimension.

Outputs

Name Description
c Returns a shifted version of a. If a is a vector, fftshift(a) swaps the left and right parts of a. If a is a matrix, c = fftshift(a) swaps quadrants 1 and 3 and quadrants 2 and 4. c is a vector or matrix.

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 = [1, 2, 3, 4; 4, 3, 2, 1]
C = fftshift(A)

Related Topics

fft
fft2d
ifft
ifft_shift


 

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