while reading data from text file in matlab 1.0e+03 * ?
Show older comments
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)
dpb
on 18 Jan 2015
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
Muhammad Naveed
on 20 Jan 2015
dpb
on 20 Jan 2015
Display formatting has no bearing whatsoever on internal storage if that's the question.
Categories
Find more on Data Import and Export in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!