Mercurial > hg > ltpda
comparison m-toolbox/html_help/help/ug/ltpda_training_topic_1_5.html @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
2 "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> | |
3 | |
4 <html lang="en"> | |
5 <head> | |
6 <meta name="generator" content= | |
7 "HTML Tidy for Mac OS X (vers 1st December 2004), see www.w3.org"> | |
8 <meta http-equiv="Content-Type" content= | |
9 "text/html; charset=us-ascii"> | |
10 | |
11 <title>Saving and loading AOs (LTPDA Toolbox)</title> | |
12 <link rel="stylesheet" href="docstyle.css" type="text/css"> | |
13 <meta name="generator" content="DocBook XSL Stylesheets V1.52.2"> | |
14 <meta name="description" content= | |
15 "Presents an overview of the features, system requirements, and starting the toolbox."> | |
16 </head> | |
17 | |
18 <body> | |
19 <a name="top_of_page" id="top_of_page"></a> | |
20 | |
21 <p style="font-size:1px;"> </p> | |
22 | |
23 <table class="nav" summary="Navigation aid" border="0" width= | |
24 "100%" cellpadding="0" cellspacing="0"> | |
25 <tr> | |
26 <td valign="baseline"><b>LTPDA Toolbox</b></td><td><a href="../helptoc.html">contents</a></td> | |
27 | |
28 <td valign="baseline" align="right"><a href= | |
29 "ltpda_training_topic_1_4.html"><img src="b_prev.gif" border="0" align= | |
30 "bottom" alt="Basic math with AOs"></a> <a href= | |
31 "ltpda_training_topic_1_6.html"><img src="b_next.gif" border="0" align= | |
32 "bottom" alt="Constructing AOs from data files"></a></td> | |
33 </tr> | |
34 </table> | |
35 | |
36 <h1 class="title"><a name="f3-12899" id="f3-12899"></a>Saving and loading AOs</h1> | |
37 <hr> | |
38 | |
39 <p> | |
40 <p> | |
41 Having made all these nice AOs, you will be keen to save them to disk. You'll | |
42 be delighted to hear that this is easy. | |
43 </p> | |
44 <p> | |
45 To file formats are supported by LTPDA: the MATLAB binary MAT format, and | |
46 an XML file format. The choice is made by the file extension. | |
47 </p> | |
48 <div class="fragment"><pre> | |
49 save(a1, <span class="string">'foo.xml'</span>); | |
50 save(a1, <span class="string">'foo.mat'</span>); | |
51 </pre></div> | |
52 <p> | |
53 To load the files again, you use the AO constructor: | |
54 </p> | |
55 <div class="fragment"><pre> | |
56 a1 = ao(<span class="string">'foo.xml'</span>); | |
57 a2 = ao(<span class="string">'foo.mat'</span>); | |
58 </pre></div> | |
59 <p> | |
60 That's all there is to it. | |
61 </p> | |
62 <p> | |
63 To load files on the workbench, you use the relevant constructor block. For example, to load | |
64 an AO XML file from disk, use the <tt>ao</tt> constructor with the parameter set "From XML File" | |
65 (or "From MAT File" to load from a MAT file). This parameter set has one default parameter: <tt>FILENAME</tt>. | |
66 If you double click the cell corresponding to the parameter value you will be presented with a 'load file' dialog | |
67 from which you can choose the file to load. | |
68 </p> | |
69 <p> | |
70 To save files from within the workbench, use the <tt>save</tt> block. The parameter list and key is the same. | |
71 The only difference will be you will be presented with a 'save file' dialog box when editing the parameter value. | |
72 </p> | |
73 <p> | |
74 The following pipeline shows the load and save in action: | |
75 </p> | |
76 <img src="images/ltpda_training_1/topic1/load_save_eg.png" alt="Load/Save example" border="1"> | |
77 | |
78 </p> | |
79 | |
80 <br> | |
81 <br> | |
82 <table class="nav" summary="Navigation aid" border="0" width= | |
83 "100%" cellpadding="0" cellspacing="0"> | |
84 <tr valign="top"> | |
85 <td align="left" width="20"><a href="ltpda_training_topic_1_4.html"><img src= | |
86 "b_prev.gif" border="0" align="bottom" alt= | |
87 "Basic math with AOs"></a> </td> | |
88 | |
89 <td align="left">Basic math with AOs</td> | |
90 | |
91 <td> </td> | |
92 | |
93 <td align="right">Constructing AOs from data files</td> | |
94 | |
95 <td align="right" width="20"><a href= | |
96 "ltpda_training_topic_1_6.html"><img src="b_next.gif" border="0" align= | |
97 "bottom" alt="Constructing AOs from data files"></a></td> | |
98 </tr> | |
99 </table><br> | |
100 | |
101 <p class="copy">©LTP Team</p> | |
102 </body> | |
103 </html> |