help-octave
[Top][All Lists]
Advanced

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

Re: fscanf


From: John W. Eaton
Subject: Re: fscanf
Date: Thu, 15 Apr 1999 07:44:21 -0500 (CDT)

On 15-Apr-1999, Thomas Walter <address@hidden> wrote:

| >>>>> "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]':

No, because then people would complain loudly that it is not
consistent with the way Matlab works.

jwe



reply via email to

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