|
From: | marco atzeri |
Subject: | Re: simple advice needed on input and output |
Date: | Sun, 08 Jul 2012 08:26:22 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 |
On 7/8/2012 7:53 AM, c. wrote:
Il giorno 08/lug/2012, alle ore 07.00, vilsu ha scritto:fid = fopen ("in.txt"); for i = 1:229799 x = eval (fgetl (fid)) save -append out.txt x endfor; fclose (fid)Is this reading the whole contents of the file "in.txt"? If it is so, then your code is equivalent to: source in.txt save out.txt x c.
the file seems to have no headers, so probably this way is more indicated x=load("-ascii", "in.txt") save out.txt x Marco
[Prev in Thread] | Current Thread | [Next in Thread] |