wolffd@0: wolffd@0: wolffd@0: wolffd@0: Netlab Reference Manual datread wolffd@0: wolffd@0: wolffd@0: wolffd@0:

datread wolffd@0:

wolffd@0:

wolffd@0: Purpose wolffd@0:

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

wolffd@0: Synopsis wolffd@0:

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

wolffd@0: Description wolffd@0:

wolffd@0: wolffd@0:

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

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

wolffd@0: Example wolffd@0:

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

wolffd@0: See Also wolffd@0:

wolffd@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
wolffd@0: Pages: wolffd@0: Index wolffd@0:
wolffd@0:

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