octave-patch-tracker
[Top][All Lists]
Advanced

[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):

Hello, 

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
factor. 

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, 

Òscar 

(file #35875)
    _______________________________________________________

Additional Item Attachment:

File name: wrapTo.7z                      Size:20 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8827>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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