|
From: | Stefan Neumann |
Subject: | Re: Editing .txt file in Octave |
Date: | Thu, 18 Mar 2010 23:02:33 +0100 |
On 18-Mar-2010, Stefan Neumann wrote:It will if you tell fscanf about the characters:
| 2010/3/18 socware <address@hidden>
| On linux this partially works :-)
| Should be OK for windows too.
|
| [fid] = fopen("zahleneinlesen_01.n.dat", "r") ; % , "native");
| [m, count] = fscanf(fid, '%f %f',[2,5]);
| fclose(fid);
| m=m';
| m
|
| It will NOT read something like 30m, though. Numbers only.
f = fopen ("foo.dat");
x = fscanf (f, "%fm %fn");
x = reshape (x, [2, numel(x)/2])';
>From there, you can scale the columns of X as needed.
jwe
[Prev in Thread] | Current Thread | [Next in Thread] |