[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)];
endif
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49192>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49192] dec2bin function does not behave the same as Matlab, anonymous, 2016/09/26
- [Octave-bug-tracker] [bug #49192] dec2bin function does not behave the same as Matlab, Kai Torben Ohlhus, 2016/09/27
- [Octave-bug-tracker] [bug #49192] dec2bin function does not behave the same as Matlab,
Kai Torben Ohlhus <=
- [Octave-bug-tracker] [bug #49192] dec2bin function does not behave the same as Matlab, Rik, 2016/09/27
- [Octave-bug-tracker] [bug #49192] dec2bin function does not behave the same as Matlab, Rik, 2016/09/27
- [Octave-bug-tracker] [bug #49192] dec2bin function does not behave the same as Matlab, Mike Miller, 2016/09/27
- [Octave-bug-tracker] [bug #49192] dec2bin function does not behave the same as Matlab, anonymous, 2016/09/29
- [Octave-bug-tracker] [bug #49192] dec2bin function does not behave the same as Matlab, Rik, 2016/09/29