Daniel@0: Daniel@0:
Daniel@0:Daniel@0: [x, t, nin, nout, ndata] = datread(filename) Daniel@0: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:
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
Copyright (c) Ian T Nabney (1996-9) Daniel@0: Daniel@0: Daniel@0: Daniel@0: