MATLAB: Does matlab have functions or class that similar to bitset in C++

floating-pont

I want to get bit array representation of floating point number. Does matlab have functions or class that similar to bitset class in C++?

Best Answer

"Does matlab have functions or class that similar to bitset class in C++?"
No.
"I want to get bit array representation of floating point number"
foo = pi;
foo64 = typecast(foo,'uint64');
bitget(foo64, 64:-1:1)
Note: depending on your needs, sometimes it is more efficient to use num2hex(foo)