[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #8827] mapping package: new functions wrap

From: anonymous
Subject: [Octave-patch-tracker] [patch #8827] mapping package: new functions wrapTo 360, 2Pi, 180, Pi
Date: Mon, 28 Dec 2015 16:06:17 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #16, patch #8827 (project octave):


It's me again. Sorry for the buggy versions. The initial one worked for me
without taking into account the issue of the edges. I've prepared a new set of
functions which, compared with Matlab results, work fine. 

Find them attached in the wrap2v2.7z. I hope you like them, they work fine in
Octave4.0 but, if executed on Matlab, they do not work well. I think it has
something to do with the second line in wrapTo2Pi.m function. 

wrapToPi, wrapTo180 and wrapTo360 just call wrapTo2Pi using the proper scaling

In the z7 file I include some test vectors in which the "v" variable is the
input to the wrapToxxx function and the "m" vector is the expected result. 

Best regards, 


(file #35875)

Additional Item Attachment:

File name: wrapTo.7z                      Size:20 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]