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

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

[Octave-bug-tracker] [bug #64556] unwrap() does not handle NaN and Inf


From: Juan
Subject: [Octave-bug-tracker] [bug #64556] unwrap() does not handle NaN and Inf
Date: Tue, 15 Aug 2023 07:19:42 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?64556>

                 Summary: unwrap() does not handle NaN and Inf
                   Group: GNU Octave
               Submitter: juang
               Submitted: Tue 15 Aug 2023 11:19:40 AM UTC
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 8.2.0
         Discussion Lock: Any
        Operating System: Microsoft Windows
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Tue 15 Aug 2023 11:19:40 AM UTC By: Juan <juang>
Octave's unwrap() function does not handle NaNs and Infs as the Matlab
equivalent. Instead of skipping them, all output following a single NaN input
is NaN etc.

See the following example

Octave:

>> (180/pi)*unwrap((pi/180)*[10,100, -175, NaN, -100, Inf, -30])
ans =

    10   100   185   NaN   NaN   NaN   NaN

Matlab:

>> (180/pi)*unwrap((pi/180)*[10,100, -175, NaN, -100, Inf, -30])

ans =

    10   100   185   NaN   260   Inf   330









    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64556>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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