Export numberic data from table to a text file in scientefic notation with specific formate

Hi,
I would like to export numbers from a table to a text file with the following format
X.XXXXXXXE+XXX
Obiously that is not an option in writetable
Thanks in advance

Réponses (1)

madhan ravi
madhan ravi le 11 Déc 2018
Modifié(e) : madhan ravi le 11 Déc 2018

2 commentaires

shortE
Short scientific notation with 4 digits after the decimal point.
3.1416e+00
longE
Long scientific notation with 15 digits after the decimal point for double values, and 7 digits after the decimal point for single values.
3.141592653589793e+00
Which is different from what I am looking for. Plus, this is only for display not for formating the string to be stored in a file.
dlmwrite() with precision should do it

Connectez-vous pour commenter.

Catégories

Question posée :

le 11 Déc 2018

Commenté :

le 11 Déc 2018

Community Treasure Hunt

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

Start Hunting!

Translated by