[Top][All Lists]

[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: Kai Torben Ohlhus
Subject: [Octave-bug-tracker] [bug #49192] dec2bin function does not behave the same as Matlab
Date: Tue, 27 Sep 2016 11:12:09 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36

Follow-up Comment #2, bug #49192 (project octave):

Another hint to solve you issue in a Matlab compatible way, depending on your
code, check for the second argument and make a branch. This should not be more
expensive than calling a function without expecting any useful output, e.g.

a = '0101001';
d = ?;
len = ?;

if (len > 0)
  a = [a, dec2bin(d, len)];


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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