Converting from floating point to fixed point.
Ältere Kommentare anzeigen
How can i convert from floating point to two's complement? I need to convert a vector of filter coefficients from Filter Designer but I do not know how.
Akzeptierte Antwort
Weitere Antworten (1)
ON
am 27 Sep. 2022
0 Stimmen
1 Kommentar
Walter Roberson
am 27 Sep. 2022
int16(Value * 2^BitsAfterDecimalPoint)
Kategorien
Mehr zu Data Type Conversion finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!