help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is my data not being read correctly?


From: Dmitri A. Sergatskov
Subject: Re: Why is my data not being read correctly?
Date: Wed, 6 Feb 2013 23:01:06 -0600

What is this "C" is for in fprintf?

I would do all this like that:

fh = fopen("data1.dat");
name1 = fgets(fh);
name2 = fgets(fh);
numx = fscanf(fh, "%f %f", [2,1]);
dat = fscanf(fh, "%f", inf);
close(fh);
# then manipulate the read data.

Dmitri.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]