Convert single to double
Mostra commenti meno recenti
I have 1x18007 single, and it has a certain range (which is not the real range), and I need to convert it to double, to get the actual values.
PS.: typecast doesn't work.
>> a = typecast(driverAppliedTorqueAtSteeringWheel, 'double');
Error using typecast
The first input must contain a multiple of 2 elements to convert from single (32 bits) to
double (64 bits).
1 Commento
James Tursa
il 27 Ott 2022
Modificato: James Tursa
il 27 Ott 2022
"... I need to convert it to double, to get the actual values ..."
This doesn't make any sense to me. Converting singles to doubles will result in exactly the same value since doubles can represent every single exactly, just in a different bit representation format. Please explain what you mean by "actual values." Maybe you can give a few examples of single values and what double values you think they should be converted to.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Database Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!