Display number with engineering notation
Mostrar comentarios más antiguos
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 comentario
Harry Dymond
el 31 de Mayo de 2020
Editada: Harry Dymond
el 31 de Mayo de 2020
For the benifit of those stumbling across this old thread in search of answers: please see my answer below
Respuesta aceptada
Más respuestas (2)
Harry Dymond
el 31 de Mayo de 2020
3 votos
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.
Categorías
Más información sobre Entering Commands en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!