I work at Matlab using non-negative matrix factorization to decompose the matrix into two factors. Using this, I get two double-precision floating-point matrices, B and C.
Results Examples
B(1,1) = 0.118
C(1,1) = 112.035
Now I'm trying to change certain bits in these values, but using the bits function for both values, I get an error because the bit set requires unsigned integers.
I also tried using the dec2bin function, which, as I expected, converts decimal numbers to binary, but returns 0 for B (1,1).
Does anyone know any way to handle bit level floats without losing accuracy?
source
share