help-octave
[Top][All Lists]
Advanced

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

fscanf


From: Thomas Walter
Subject: fscanf
Date: Tue, 13 Apr 1999 10:57:53 +0200

Hello,
is it only me who has problems with 'fscanf' and friends?

I have measured data in a data file written as ASCII, i.e.:
        10  123.4
        20  234.5
        30  345.6
        40  456.7
        50  567.8
        60  678.9

This is data in one line belongs together.  In this case I have 2
columns and the number of lines/rows is unknown, bu defined by EOF.
If I read the data with this knowledge I always jump into the same
pit.  The 'fscanf' function wants lines and colomuns in the opposited
order.

Apart from that the matrix I get has the size 2x6, this means:
        10 20 30 40 50 60
        123.4 234.5 345.6 456.7 567.8 678.9

Is this behaviour only strange for me?

Bye
Thomas

-- 

"Beweiss" fuer die These: 'Alle ungeraden Zahlen sind prim.'
3, 5, 7, 11, alle sind ungerade und prim.
9 ist ist ein irrelevanter Messfehler.
==> Bingo!  8-))))))

----------------------------------------------
Dipl. Phys. Thomas Walter
Inst. f. Physiklische Chemie II
Egerlandstr. 3                          Tel.: ++9131-85 27326 / 27330
91058 Erlangen, Germany                 email: address@hidden



reply via email to

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