Azzera filtri
Azzera filtri

How to convert data from floating point to fixed point? Not function, only data.

3 visualizzazioni (ultimi 30 giorni)
I want to convert an array of single precision data into fixed point and I have proposed length of the data I want.
How to convert? All the searched answers are about the convertion flow of floating point function/algorithm/design to fixed point implementation.
Can I just convert the data?

Risposta accettata

Steven Lord
Steven Lord il 8 Mag 2023
Try calling the fi function.
q = fi(pi)
q =
3.1416 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 13

Più risposte (0)

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by