I have an Octave program that I would like to turn into Matlab code. The sticking point is the Octave bitunpack command, which returns a logical array y corresponding to the raw bit patterns of x. Is there a Matlab equivalent? Here are the lines of code that it appears in.
Alternatively, can I just run the Octave program from Matlab if I install Octave?
m = uint32 (0:2^n-1);
if (bitunpack (uint16 (1))(1) == 0)
m = swapbytes (m);
b = reshape (bitunpack (m), 32, 2^n)(1:n,:);