MATLAB: How to import data from a text file without rounding it off

data importtext file

A=csvread('EQ6_1.txt');
I have tried using several other functions suggested for reading files as well, but they all round off the data to 4 decimal places. Is there a way to prevent this? I've attached the data file I wish to import.

Best Answer

Hi,
it doesnt:
>> A=csvread('EQ6_1.txt');
>> format long
>> A
A =
0.000992319000000
0.006854762000000
0.058054006000000
0.074775851000000
0.017239697000000
-0.037693456000000
-0.054052609000000
-0.041266761000000
-0.020592912000000
-0.008872862000000
-0.006315412000000
-0.006583060000000
-0.005791308000000
-0.006265555000000
-0.008292302000000
-0.003396047000000
...
what seems like rounded is just the standard how Matlab displays values. Check format for more details.
Best regards
Stephan