Scientific notation to standard in text file

I have some text files with a column of values in scientific notation. I would like to open this file, convert each number to the corresponding standard format (without losing precision) and save them in a new file as a column (like the original file). How can I do this?

1 Kommentar

What is "corresponding standard format", and what format are they in now?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Star Strider
Star Strider am 14 Feb. 2017

0 Stimmen

Use load, dlmread, textscan or other function to read the file.
To write the new file, use the fprintf, dlmwrite, or other function, with the appropriate version of the '%f format descriptor. See the documentation for the various functions for details on how to specify the format descriptors. (For example, dlmwrite as the 'precision' name-value pair argument option.)

Gefragt:

am 14 Feb. 2017

Kommentiert:

am 14 Feb. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by