Binary-Float convertor
Versión 1.0.0.0 (862 Bytes) por
Dogac Basaran
There are two functions to convert floats and binary streams to each other
Matlab builtin functions bin2dec and dec2bin are not sufficient for float to binary and binary to float conversions. float2bin(in) function takes a floating point number as an input and returns a binary representation. bin2float(bin) function takes a binary representation as an input and returns a floating point number.
Example usage:
>> out = float2bin(6.875)
out =
110.111
>> out = bin2float('110.111')
out =
6.8750
Citar como
Dogac Basaran (2026). Binary-Float convertor (https://la.mathworks.com/matlabcentral/fileexchange/56893-binary-float-convertor), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2016a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Data Type Conversion en Help Center y MATLAB Answers.
Etiquetas
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0.0 |
