|
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) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |