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: Terry Duell
Subject: Re: Why is my data not being read correctly?
Date: Thu, 07 Feb 2013 16:28:53 +1100
User-agent: Opera Mail/12.13 (Linux)

On Thu, 07 Feb 2013 16:01:06 +1100, Dmitri A. Sergatskov <address@hidden> wrote:

What is this "C" is for in fprintf?


see http://www.gnu.org/software/octave/doc/interpreter/Formatted-Input.html

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.

OK.

--
Regards,
Terry Duell


reply via email to

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