while reading data from text file in matlab 1.0e+03 * ?

1.4246 -0.48573 0.32106 -0.19528 0.029644 -0.11173 -0.013292 0.13126 0.00024218 -0.039908 0.083129 0.05777 0.086441 0.14724 1753.7 0.88019 157.1
1.3746 -0.33357 0.50582 -0.12754 -0.01191 0.035853 -0.11429 -0.048385 0.066668 0.083759 0.037717 0.11791 0.15688 0.16511 2138.5 0.77124 157.03
but when i read it back it gives following out put. Help me
1.0e+03 *
Columns 1 through 7
0.0014 0.0003 0.0000 -0.0000 0.0000 0.0001 0.0001
-0.0005 -0.0002 -0.0001 0.0001 -0.0000 0.0001 0.0001
Columns 8 through 14
1.7537 0.1571 -0.0003 -0.0001 0.0000 -0.0000 0.0001
0.0009 0.0014 0.0005 -0.0000 -0.0001 0.0001 0.0000
Columns 15 through 17
0.0001 0.0002 0.0008
0.0002 2.1385 0.1570

Answers (1)

Yes, and??? Your data range from <10E-3 to >1E3 so Matlab by default displays with the largest and an exponent so as to make that value have magnitude between 1 and 10.
See
doc format
for options for changing the display formatting; meanwhile the values are stored to full double precision internally.

3 Comments

changing format will not hurt the originality of data because these are features to be compared with other features?
Display formatting has no bearing whatsoever on internal storage if that's the question.
Your data are still the same Changing the format only changes how they are displayed in the command window and variable viewer.

Sign in to comment.

Categories

Asked:

on 18 Jan 2015

Edited:

on 20 Jan 2015

Community Treasure Hunt

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

Start Hunting!