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

Antworten (1)

madhan ravi
madhan ravi am 11 Dez. 2018
Bearbeitet: madhan ravi am 11 Dez. 2018

2 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 11 Dez. 2018

Kommentiert:

am 11 Dez. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by