Importing text to cell, avoid conversion to scientific notation

4 ビュー (過去 30 日間)
Victoria Lawlor
Victoria Lawlor 2015 年 10 月 26 日
コメント済み: Star Strider 2015 年 10 月 26 日
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 件のコメント
Victoria Lawlor
Victoria Lawlor 2015 年 10 月 26 日
"format long g" worked, thanks
Star Strider
Star Strider 2015 年 10 月 26 日
My pleasure.

サインインしてコメントする。

その他の回答 (1 件)

Thorsten
Thorsten 2015 年 10 月 26 日
You can use dlmread for this task.

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by