How can I import .dat file without rounding the values where in the .dat file ?

1 回表示 (過去 30 日間)
dinesh
dinesh 2015 年 4 月 8 日
回答済み: Michael Haderlein 2015 年 4 月 8 日
When I import the .dat file, always round the values where in the .dat file.

回答 (1 件)

Michael Haderlein
Michael Haderlein 2015 年 4 月 8 日
Matlab doesn't round-off automatically. You might mean the values shown in the command window. But that's only the displayed value. The actual value in the memory has more digits. You can for instance change the display mode with
format long
to see more digits. In any case, the calculations are performed on all digits available.
If the error indeed lies in the file import, you need to provide much more information than "it's a dat file". That says nothing except that there's data.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by