annotate toolboxes/FullBNT-1.0.7/nethelp3.3/datread.htm @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
rev   line source
wolffd@0 1 <html>
wolffd@0 2 <head>
wolffd@0 3 <title>
wolffd@0 4 Netlab Reference Manual datread
wolffd@0 5 </title>
wolffd@0 6 </head>
wolffd@0 7 <body>
wolffd@0 8 <H1> datread
wolffd@0 9 </H1>
wolffd@0 10 <h2>
wolffd@0 11 Purpose
wolffd@0 12 </h2>
wolffd@0 13 Read data from an ascii file.
wolffd@0 14
wolffd@0 15 <p><h2>
wolffd@0 16 Synopsis
wolffd@0 17 </h2>
wolffd@0 18 <PRE>
wolffd@0 19 [x, t, nin, nout, ndata] = datread(filename)
wolffd@0 20 </PRE>
wolffd@0 21
wolffd@0 22
wolffd@0 23 <p><h2>
wolffd@0 24 Description
wolffd@0 25 </h2>
wolffd@0 26
wolffd@0 27 <p><CODE>[x, t, nin, nout, ndata] = datread(filename)</CODE> reads from
wolffd@0 28 the file <CODE>filename</CODE> and returns a matrix <CODE>x</CODE> of input vectors,
wolffd@0 29 a matrix <CODE>t</CODE> of target vectors, and integers <CODE>nin</CODE>, <CODE>nout</CODE>
wolffd@0 30 and <CODE>ndata</CODE> specifying the number of inputs, the number of outputs
wolffd@0 31 and the number of data points respectively.
wolffd@0 32
wolffd@0 33 <p>The format of the data file is as follows: the first row contains the
wolffd@0 34 string <CODE>nin</CODE> followed by the number of inputs, the second row
wolffd@0 35 contains the string <CODE>nout</CODE> followed by the number of outputs, and
wolffd@0 36 the third row contains the string <CODE>ndata</CODE> followed by the number
wolffd@0 37 of data vectors. Subsequent lines each contain one input vector
wolffd@0 38 followed by one output vector, with individual values separated by
wolffd@0 39 spaces.
wolffd@0 40
wolffd@0 41 <p><h2>
wolffd@0 42 Example
wolffd@0 43 </h2>
wolffd@0 44 For the XOR data set we have
wolffd@0 45
wolffd@0 46 <p><h2>
wolffd@0 47 See Also
wolffd@0 48 </h2>
wolffd@0 49 <CODE><a href="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.htm">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</a></CODE><hr>
wolffd@0 50 <b>Pages:</b>
wolffd@0 51 <a href="index.htm">Index</a>
wolffd@0 52 <hr>
wolffd@0 53 <p>Copyright (c) Ian T Nabney (1996-9)
wolffd@0 54
wolffd@0 55
wolffd@0 56 </body>
wolffd@0 57 </html>