Display number with engineering notation
Afficher commentaires plus anciens
I'm trying to display a number I read in with textscan in engineering notation. I was trying to switch the format to short eng and do:
evalc('disp(x)')
But it doesn't matter what format I set, the format textscan reads it in is what it uses.
1 commentaire
Harry Dymond
le 31 Mai 2020
Modifié(e) : Harry Dymond
le 31 Mai 2020
For the benifit of those stumbling across this old thread in search of answers: please see my answer below
Réponse acceptée
Plus de réponses (2)
Harry Dymond
le 31 Mai 2020
3 votes
For the benifit of those stumbling across this old thread in search of answers: my FEX submission num2eng will do this, and offers SI prefixes as well as engineering notation.
Catégories
En savoir plus sur Entering Commands dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!