Importing text to cell, avoid conversion to scientific notation

7 次查看(过去 30 天)
I'm wondering how I can import a tab delimited text file into a cell without having it convert to scientific notation.
  1 个评论
Stephen23
Stephen23 2015-10-26
编辑:Stephen23 2015-10-26
The standard MATLAB file-reading functions read data with the full double precision, and do not "convert to scientific notation". When data is displayed in the command window it is often shown in scientific notation, but this is not the same thing as how it is stored. You can use format to change how numeric values are displayed.
Summary: displaying numeric variables is a different topic to how they are stored.

请先登录,再进行评论。

采纳的回答

Star Strider
Star Strider 2015-10-26
The format function dictates how data are displayed in the Command Window and tooltips. Full precision is maintained internally.
  4 个评论

请先登录,再进行评论。

更多回答(1 个)

Thorsten
Thorsten 2015-10-26
You can use dlmread for this task.

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by