octave-maintainers
[Top][All Lists]
Advanced

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

Re: bin2dec behavior different from Matlab?


From: ahowe42
Subject: Re: bin2dec behavior different from Matlab?
Date: Wed, 21 Mar 2012 03:01:41 -0700 (PDT)

If a string holds data that is too be operated upon, every character should
be meaningful.  Using [1 0 1] to indicate [101] is bad programming practice,
and an (admittedly small) inefficiency.  I have also done MATLAB programming
using binary strings and bin2dec / dec2bin, and never included unnecessary
spaces (actually, logical arrays are much more useful and should be faster).

Is this really something that should be "fixed"?

Andrew

--
View this message in context: 
http://octave.1599824.n4.nabble.com/bin2dec-behavior-different-from-Matlab-tp4477272p4491775.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.


reply via email to

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