help-octave
[Top][All Lists]
Advanced

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

Re: fscanf


From: Thomas Walter
Subject: Re: fscanf
Date: Thu, 15 Apr 1999 10:35:12 +0200

>>>>> "John" == John W Eaton <address@hidden> writes:

[snip]

    John> Yes, the bug is in the docs.  It should read:


    John>   [A, COUNT] = fscanf (FILENUM, FORMAT [, SIZE])

    John>   Read from FILENUM according to FORMAT, returning the result in the
    John>   matrix A.  SIZE is optional.  If present, it can be one of

    John>        Inf : read as much as possible, returning a column vector
    John>              (unless doing all character conversions, in which case a
    John>              string is returned)
    John>         NR : read up to NR elements, returning a column vector
    John>     [NR, NC] : read up to NR x NC elements, returning a matrix with 
NR rows
    John>    [NR, Inf] : read as much as possible, returning a matrix with NR 
rows

In the cases '[NR, NC]' and '[NR, Inf]':
Shouldn't it be
        '[NC, NR]' and '[NC, Inf]':
because if you have an ASCII-table of data the data with in a line go
into a column.  I always assume NR = 'number of lines in the data
file' and NC = 'number of columns in a line'.

[snip]

Bye
Thomas

-- 
Platzangst:
Der dauerhafte Zustand eines Luftballons.

----------------------------------------------
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]