Daniel@0: Daniel@0: Daniel@0: Daniel@0: Netlab Reference Manual datread Daniel@0: Daniel@0: Daniel@0: Daniel@0:

datread Daniel@0:

Daniel@0:

Daniel@0: Purpose Daniel@0:

Daniel@0: Read data from an ascii file. Daniel@0: Daniel@0:

Daniel@0: Synopsis Daniel@0:

Daniel@0:
Daniel@0: [x, t, nin, nout, ndata] = datread(filename)
Daniel@0: 
Daniel@0: Daniel@0: Daniel@0:

Daniel@0: Description Daniel@0:

Daniel@0: Daniel@0:

[x, t, nin, nout, ndata] = datread(filename) reads from Daniel@0: the file filename and returns a matrix x of input vectors, Daniel@0: a matrix t of target vectors, and integers nin, nout Daniel@0: and ndata specifying the number of inputs, the number of outputs Daniel@0: and the number of data points respectively. Daniel@0: Daniel@0:

The format of the data file is as follows: the first row contains the Daniel@0: string nin followed by the number of inputs, the second row Daniel@0: contains the string nout followed by the number of outputs, and Daniel@0: the third row contains the string ndata followed by the number Daniel@0: of data vectors. Subsequent lines each contain one input vector Daniel@0: followed by one output vector, with individual values separated by Daniel@0: spaces. Daniel@0: Daniel@0:

Daniel@0: Example Daniel@0:

Daniel@0: For the XOR data set we have Daniel@0: Daniel@0:

Daniel@0: See Also Daniel@0:

Daniel@0: nin2nout1ndata40.000000e+000.000000e+001.000000e+000.000000e+001.000000e+000.000000e+001.000000e+000.000000e+000.000000e+001.000000e+001.000000e+001.000000e+00SeeAlsodatwrite
Daniel@0: Pages: Daniel@0: Index Daniel@0:
Daniel@0:

Copyright (c) Ian T Nabney (1996-9) Daniel@0: Daniel@0: Daniel@0: Daniel@0: