Q15 to decimal converter
Versione 1.0.0.0 (1,22 KB) da
Szymon Leja
Silmple function that converts an value from Q15 to decimal.
Converts any Q15 value (hexadecimal or binary) to decimal integer.
y = q152dec(x , form)
Input arguments of function:
x - its hexadecimal or binary representation stored in a MATLAB string
form - dependent on representation of input argument (hexadecimal or binary) take 'hex' or 'bin'
Valu of function:
y - decimal integer
EXAMPLE:
>> q152dec('C000','hex')
ans =
-0.5000
Cita come
Szymon Leja (2025). Q15 to decimal converter (https://it.mathworks.com/matlabcentral/fileexchange/18413-q15-to-decimal-converter), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2007a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Scopri di più su Sources in Help Center e MATLAB Answers
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!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 |
