Code covered by the BSD License  

Highlights from
UnWrapper

Be the first to rate this file! 8 Downloads (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
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
simulink Giampiero Campa 22 Oct 2008 07:36:10
angle Giampiero Campa 22 Oct 2008 07:36:10
wrap Giampiero Campa 22 Oct 2008 07:36:10
unwrap Giampiero Campa 22 Oct 2008 07:36:10
phase Giampiero Campa 22 Oct 2008 07:36:10
atan2 Giampiero Campa 22 Oct 2008 07:36:10
atan Giampiero Campa 22 Oct 2008 07:36:10
jumps Giampiero Campa 22 Oct 2008 07:36:10

Contact us at files@mathworks.com