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

Answers (1)

2 Comments

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.

Sign in to comment.

Categories

Asked:

on 11 Dec 2018

Commented:

on 11 Dec 2018

Community Treasure Hunt

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

Start Hunting!