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

1 view (last 30 days)
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)

madhan ravi
madhan ravi on 11 Dec 2018
Edited: madhan ravi on 11 Dec 2018
  2 Comments
Ahmed
Ahmed on 11 Dec 2018
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

Find more on Characters and Strings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!