Binary-Float convertor
Versione 1.0.0.0 (862 Byte) da
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
Cita come
Dogac Basaran (2026). Binary-Float convertor (https://it.mathworks.com/matlabcentral/fileexchange/56893-binary-float-convertor), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2016a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Scopri di più su Data Type Conversion in Help Center e MATLAB Answers
Tag
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
