Code covered by the BSD License  

Highlights from
UnWrapper

Be the first to rate this file! 1 Download (last 30 days) File Size: 4.79 KB File ID: #6354
image thumbnail

UnWrapper

by Giampiero Campa

 

19 Nov 2004 (Updated 24 Nov 2004)

Unwraps angles so that continuity is restored.

| Watch this File

File Information
Description

Normally, the output of functions that return angles (e.g. atan2) is strictly constrained within the range 0 to 2*pi or within the range -pi to pi.

Therefore, even if the inputs change continuously, the angle will exhibit 2*pi jumps across the limits, which is sometimes undesirable (e.g. when the angle drives a control system).

This block unwraps an input angle to the whole real axis so that it does not make 2*pi jumps anymore.

In order to distinguish jumps from normal behavior, an upper bound on the maximum time derivative of the input is assumed.

Required Products Simulink
MATLAB release MATLAB 5.3.1 (R11.1)
Tags for This File  
Everyone's Tags
angle, atan, atan2, jumps, phase, simulink, unwrap(2), wrap
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
17 Jul 2012 Armin Ka

Hi,
I need a phase unwrapping algorithm to unwrap the interference phase which is bounded between -pi, pi or 0, 2*pi
Thanks for your help.
A

Contact us