help-octave
[Top][All Lists]
Advanced

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

Re: Question about bin2dec


From: John W. Eaton
Subject: Re: Question about bin2dec
Date: Fri, 30 Jun 2006 13:59:17 -0400

On 30-Jun-2006, Ron Crummett wrote:

| Are we speaking of compatibility with Matlab?

Yes, what other kind of compatibility is there?

| I personally favor that, as I have code using the bin2dec function
| that runs fine in Matlab but not in Octave because of
| this...feature.

Or, another way to look at it is that relying on specific behavior for
strangely formatted input.  Why are there spaces between the binary
digits anyway?  Why not fix that instead?

| Ignoring spaces in the binary vector will lead to
| what one would expect.  (Well, at least what I would expect).

I don't plan to fix this myself, but will apply a patch if someone
else provides it.  It must work for character matrices as well as
single charachter strings.  It would be good to include a test for the
new behavior.

Thanks,

jwe


reply via email to

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