Thu 05 Oct 2017 11:05:30 AM UTC, original submission:
Hi,
First I have one question, why not migrate to GitHub or other ?
It would be great to be able to use markdown language and preview the bug before we submit it.
Here is the problem with the bitxor function :
On Matlab R2017a (9.2.0.556344) :
>> byteVector=0:255;
>> data=0:499;
>> whos byteVector data
Name Size Bytes Class Attributes
byteVector 1x256 2048 double
data 1x500 4000 double
>> c=bitxor(byteVector,data);
Error using bitxor
Inputs must have the same size.
>> c=bitxor(byteVector',data); %Transposing the first vector
>> whos c
Name Size Bytes Class Attributes
c 256x500 1024000 double
On Octave 4.2.1 :
octave:1> byteVector=0:255;
octave:2> data=0:499;
octave:3> whos byteVector data
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
byteVector 1x256 24 double
data 1x500 24 double
Total is 756 elements using 48 bytes
octave:4> c=bitxor(byteVector,data);
error: bitxor: size of X and Y must match, or one operand must be a scalar
octave:4> c=bitxor(byteVector',data); %Transposing the first vector
error: bitxor: size of X and Y must match, or one operand must be a scalar
octave:4> whos c
octave:5>
Can you please have a look ?
|