Mercurial > hg > ltpda
diff m-toolbox/html_help/help/ug/constructor_examples_cdata_content.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/constructor_examples_cdata_content.html Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,107 @@ +<!-- $Id: constructor_examples_cdata_content.html,v 1.2 2008/03/30 16:12:46 ingo Exp $ --> + +<!-- -------------------------------------------------- --> +<!-- --------------- BEGIN CONTENT FILE --------------- --> +<!-- -------------------------------------------------- --> + +<!-- --------------- Link box: begin --------------- --> +<table border="0" summary="Simple list" class="simplelist_nottable_last"> + <tr> + <td> + <a href="constructor_examples_cdata.html#empty">Construct empty CDATA object</a> + </td> + </tr> + <tr> + <td> + <a href="constructor_examples_cdata.html#xml_file">Construct a CDATA object by loading the object from a file</a> + </td> + </tr> + <tr> + <td> + <a href="constructor_examples_cdata.html#plist">Construct a CDATA object from a parameter list object (PLIST)</a> + </td> + </tr> + <tr> + <td> + <a href="constructor_examples_cdata.html#const">Construct a CDATA from a constant data</a> + </td> + </tr> +</table> +<!-- --------------- Link box: end --------------- --> + +<!-- --------------- NEXT EXAMPLE --------------- --> + +<hr> +<h2 class="title"><a name="empty"></a>Construct empty CDATA object</h2> +<p>The following example creates a empty cdata object</p> +<div class="fragment"><pre class="programlisting"> +c1 = cdata() +-------- cdata 01 ------------ + + name: None + y: [0x0], double + x: +------------------------------ +</pre></div> + +<!-- --------------- NEXT EXAMPLE --------------- --> + +<hr> +<h2 class="title"><a name="xml_file"></a>Construct a CDATA object by loading the object from a file</h2> +<p>The following example creates a new cdata object by loading the cdata object from disk.</p> +<div class="fragment"><pre class="programlisting"> +c1 = cdata(<span class="string">'c1.mat'</span>) +c1 = cdata(<span class="string">'c1.xml'</span>) +</pre></div> + +<!-- --------------- NEXT EXAMPLE --------------- --> + +<hr> +<h2 class="title"><a name="plist"></a>Construct a CDATA object from a parameter list object (PLIST)</h2> + +<p>Creates a data object with the given parameter list which contains 'fcn' or 'vals'</p> + +<!-- --------------- 'fcn' --------------- --> + +<h3 class="title"><a name="fcn">Use the key word 'fcn'</h3> +<p>The following example creates a CDATA object from the description of any valid MATLAB function.</p> +<div class="fragment"><pre class="programlisting"> +pl = plist(<span class="string">'fcn'</span>, <span class="string">'randn(100,1)'</span>); + +c1 = cdata(pl) +</pre></div> + +<!-- --------------- 'vals' --------------- --> + +<h3 class="title"><a name="vals">Use the key word 'vals'</h3> +<p>The following example creates a CDATA object with the values specified in 'vals'. Remark: the cdata object stores the values in the property 'y' so it is also possible to use the key-value 'y'</p> +<div class="fragment"><pre class="programlisting"> +vals = [0 1 2 3; 5 6 7 8]; +pl1 = plist(<span class="string">'vals'</span>, vals); +pl2 = plist(<span class="string">'y'</span>, vals); + +c1 = cdata(pl1) +c2 = cdata(pl2) +</pre></div> + +<!-- --------------- NEXT EXAMPLE --------------- --> + +<hr> +<h2 class="title"><a name="const"></a>Construct a CDATA from a constant data</h2> +<div class="fragment"><pre class="programlisting"> +c1 = cdata(1:.1:10) +c2 = cdata([1 2 3; 4 5 6; 7 8 9]) +</pre></div> + +<p>Construct a CDATA object with N samples all of the constant value</p> +<div class="fragment"><pre class="programlisting"> +vals = 1:10; +N = 5; + +c1 = cdata(N, vals) +</pre></div> + + +<!-- ------------------------------------------------ --> +<!-- --------------- END CONTENT FILE --------------- --> +<!-- ------------------------------------------------ -->