Mathematica 9 is now available

Wolfram Library Archive


All Collections Articles Books Conference Proceedings
Courseware Demos MathSource Technical Notes
Title Downloads

A Package to Eliminate Discontinuities in the Phase of an FFT
Author

Ted Ersek
Organization: Naval Air Warfare Center, Aircraft Division
URL: http://www.verbeia.com/mathematica/
Old MathSource #

0211-026
Revision date

2004-05-14
Description

A Packege called SmoothPhase.m is provided and demonstrated in the notebook SmoothPhase.nb. The package defines a function by the same name. To understand what the package does consider a list of numeric values named (data). If (phase=Arg[Fourier[data]]) then ListPlot[phase] often shows sudden jumps between Pi and -Pi. SmoothPhase[phase] assumes the elements of (phase) have units of radians and returns an equivalent list with minimal jumps between adjacent samples. SmoothPhase can take a list or matrix of numeric values with no imaginary part. SmoothPhase has an option called Period and the setting (Period->360) will cause SmoothPhase to assume the elements of (phase) have units of degrees.
Subjects

*Engineering > Electrical Engineering
*Mathematica Technology > Programming > Packages and Contexts
Keywords

Phase, Discontiuous, Discontinuity, Jumps, Jump, smooth
Downloads Download Wolfram CDF Player

Download
SmoothPhase.m (4.3 KB) - Mathematica package [for Mathematica 5.0]
Download
SmoothPhase.nb (8.4 KB) - Mathematica notebook [for Mathematica 5.0]