Reputation: 321
When i read a csv file using csvread(), the values have only 4 point precision, eg. -5.2556 instead of the actual value -5.2555569189. How can i get the full value?
>> a(1,7)
ans = -5.2556
Upvotes: 1
Views: 1769
Reputation: 65440
By default, Octave only displays 5 significant digits
By default, Octave displays 5 significant digits in a human readable form (option ‘short’ paired with ‘loose’ format for matrices). If
format
is invoked without any options, this default format is restored.
If you want to change this, use format
with an input argument to allow you to see more digits in the command window display.
format long g
Upvotes: 1