MATLAB: Real value to binary

binaryconversionconvertinteger

How can i convert my real value to binary digits?
For example; i have values within [0,25] range and 15 binary digits to represent a variable.(4 variables totally)
How can i do that and also reverse of that?

Best Answer

doc dec2bin