Debian Codegraph @

docs/manual/Read_Matrix_from_raw_text_file___.html

raw
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>Read Matrix from raw text file...</title>
3 <style>
4 td { padding-left: 5pt; padding-right: 5pt; }
5 th { padding-left: 5pt; padding-right: 5pt; }
6 code { white-space: pre-wrap; }
7 dd { white-space: pre-wrap; }
8 </style>
9 </head><body bgcolor="#FFFFFF">
10
11 <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b>
12 Read Matrix from raw text file...
13 </b></font></table></table>
14 <p>A command to read a <a href="Matrix.html">Matrix</a> object from a file on disk.</p>
15 <h2>File format</h2>
16 <p>The file should contain each row of the matrix on a separate line. Within each row, the elements must be separated by spaces or tabs.</p>
17 <p>For instance, the following text file will be read as a Matrix with three rows and four columns:</p>
18 <code> 0.19 3 245 123<br></code>
19 <code> 18e-6 -3e18 0 0.0<br></code>
20 <code> 1.5 2.5 3.5 4.5<br></code>
21 <p>The resulting Matrix will have the same domain and sampling as Matrices created with <b>Create simple Matrix...</b>. In the above example, this means that the Matrix will have <i>x</i><sub><i>min</i></sub> = 0.5, <i>x</i><sub><i>max</i></sub> = 4.5, <i>n</i><sub><i>x</i></sub> = 4, <i>dx</i> = 1.0, <i>x</i><sub>1</sub> = 1.0, <i>y</i><sub><i>min</i></sub> = 0.5, <i>y</i><sub><i>max</i></sub> = 3.5, <i>n</i><sub><i>y</i></sub> = 3, <i>dy</i> = 1.0, <i>y</i><sub>1</sub> = 1.0.</p>
22 <h3>Links to this page</h3>
23 <ul>
24 <li><a href="RealTier.html">RealTier</a>
25 <li><a href="TableOfReal.html">TableOfReal</a>
26 </ul>
27 <hr>
28 <address>
29 <p>© ppgb 19980322</p>
30 </address>
31 </body>
32 </html>