MATLAB: Loading a file and digits

Oct 2008
49
0
Hi guys

I am loading in a file using

Code:
load data.dat
which contains the numbers 1.123, 2.1234, 3.123456.

Now, how many decimals are stored in the variable data(i,1) where i is {1,3}? And can I vary this amount (I want the maximum amount).

Best,
Niles.
 

CaptainBlack

MHF Hall of Fame
Nov 2005
14,972
5,271
someplace
Hi guys

I am loading in a file using

Code:
load data.dat
which contains the numbers 1.123, 2.1234, 3.123456.

Now, how many decimals are stored in the variable data(i,1) where i is {1,3}? And can I vary this amount (I want the maximum amount).

Best,
Niles.
What do you get when you type data at the command prompt?

(you should have an array of doubles so they should have as many figures as in the file)

CB
 
Oct 2008
49
0
I just used

Code:
format long
to be on the safe side. Thanks.
 
Similar Math Discussions Math Forum Date
Math Software
Math Software
Math Software
Math Software