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

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

[Octave-bug-tracker] [bug #49192] dec2bin function does not behave the s


From: anonymous
Subject: [Octave-bug-tracker] [bug #49192] dec2bin function does not behave the same as Matlab
Date: Mon, 26 Sep 2016 19:43:29 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0

URL:
  <http://savannah.gnu.org/bugs/?49192>

                 Summary: dec2bin function does not behave the same as Matlab
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mon 26 Sep 2016 07:43:26 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Jim Haberly
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.2
        Operating System: Microsoft Windows

    _______________________________________________________

Details:


I just finished porting a complex model of an MPEG-2 video encoder originally
written in Matlab. When executed on GNU Octave the model produced syntax
errors in the output video stream. I traced this to the dec2bin() function.

Matlab: dec2bin(0,0) returns ''
Octave: dec2bin(0,0) returns '0'

When using dec2bin to produce character strings by concatenation, extra 0 bits
were appearing in the result.






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49192>

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




reply via email to

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