Mercurial > hg > ltpda
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/html_help/help/ug/ltpda_training_topic_1_5.html Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,103 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" + "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> + +<html lang="en"> +<head> + <meta name="generator" content= + "HTML Tidy for Mac OS X (vers 1st December 2004), see www.w3.org"> + <meta http-equiv="Content-Type" content= + "text/html; charset=us-ascii"> + + <title>Saving and loading AOs (LTPDA Toolbox)</title> + <link rel="stylesheet" href="docstyle.css" type="text/css"> + <meta name="generator" content="DocBook XSL Stylesheets V1.52.2"> + <meta name="description" content= + "Presents an overview of the features, system requirements, and starting the toolbox."> + </head> + +<body> + <a name="top_of_page" id="top_of_page"></a> + + <p style="font-size:1px;"> </p> + + <table class="nav" summary="Navigation aid" border="0" width= + "100%" cellpadding="0" cellspacing="0"> + <tr> + <td valign="baseline"><b>LTPDA Toolbox</b></td><td><a href="../helptoc.html">contents</a></td> + + <td valign="baseline" align="right"><a href= + "ltpda_training_topic_1_4.html"><img src="b_prev.gif" border="0" align= + "bottom" alt="Basic math with AOs"></a> <a href= + "ltpda_training_topic_1_6.html"><img src="b_next.gif" border="0" align= + "bottom" alt="Constructing AOs from data files"></a></td> + </tr> + </table> + + <h1 class="title"><a name="f3-12899" id="f3-12899"></a>Saving and loading AOs</h1> + <hr> + + <p> + <p> + Having made all these nice AOs, you will be keen to save them to disk. You'll + be delighted to hear that this is easy. +</p> +<p> + To file formats are supported by LTPDA: the MATLAB binary MAT format, and + an XML file format. The choice is made by the file extension. +</p> +<div class="fragment"><pre> + save(a1, <span class="string">'foo.xml'</span>); + save(a1, <span class="string">'foo.mat'</span>); +</pre></div> +<p> + To load the files again, you use the AO constructor: +</p> +<div class="fragment"><pre> + a1 = ao(<span class="string">'foo.xml'</span>); + a2 = ao(<span class="string">'foo.mat'</span>); +</pre></div> +<p> + That's all there is to it. +</p> +<p> + To load files on the workbench, you use the relevant constructor block. For example, to load + an AO XML file from disk, use the <tt>ao</tt> constructor with the parameter set "From XML File" + (or "From MAT File" to load from a MAT file). This parameter set has one default parameter: <tt>FILENAME</tt>. + If you double click the cell corresponding to the parameter value you will be presented with a 'load file' dialog + from which you can choose the file to load. +</p> +<p> + To save files from within the workbench, use the <tt>save</tt> block. The parameter list and key is the same. + The only difference will be you will be presented with a 'save file' dialog box when editing the parameter value. +</p> +<p> + The following pipeline shows the load and save in action: +</p> +<img src="images/ltpda_training_1/topic1/load_save_eg.png" alt="Load/Save example" border="1"> + + </p> + + <br> + <br> + <table class="nav" summary="Navigation aid" border="0" width= + "100%" cellpadding="0" cellspacing="0"> + <tr valign="top"> + <td align="left" width="20"><a href="ltpda_training_topic_1_4.html"><img src= + "b_prev.gif" border="0" align="bottom" alt= + "Basic math with AOs"></a> </td> + + <td align="left">Basic math with AOs</td> + + <td> </td> + + <td align="right">Constructing AOs from data files</td> + + <td align="right" width="20"><a href= + "ltpda_training_topic_1_6.html"><img src="b_next.gif" border="0" align= + "bottom" alt="Constructing AOs from data files"></a></td> + </tr> + </table><br> + + <p class="copy">©LTP Team</p> +</body> +</html>