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