view m-toolbox/html_help/help/ug/constructor_examples_xyzdata_content.html @ 29:54f14716c721 database-connection-manager

Update Java code
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents f0afece42f48
children
line wrap: on
line source

<!-- $Id: constructor_examples_xyzdata_content.html,v 1.1 2008/03/30 20:40:04 ingo Exp $ -->

<!-- -------------------------------------------------- -->
<!-- --------------- BEGIN CONTENT FILE --------------- -->
<!-- -------------------------------------------------- -->

<!-- --------------- Link box: begin --------------- -->
<table border="0" summary="Simple list" class="simplelist_nottable_last">
  <tr>
    <td>
      <a href="constructor_examples_xyzdata.html#empty">Construct empty XYZDATA object</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_xyzdata.html#xml_file">Construct a XYZDATA object by loading the object from a file</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_xyzdata.html#z_data">Construct a XYZDATA object from z-data</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_xyzdata.html#x_y_z">Construct a XYZDATA object from a x-data, y-data and z-data</a>
    </td>
  </tr>
</table>
<!-- --------------- Link box: end --------------- -->

<!-- --------------- NEXT EXAMPLE --------------- -->

<hr>
<h2 class="title"><a name="empty"></a>Construct empty XYZDATA object</h2>
<p>The following example creates an empty xyzdata object</p>
<div class="fragment"><pre class="programlisting">
xyz = xyzdata()
-------- xyzdata 01 ------------

  name:  None
     x:  [0 0], double
     y:  [0 0], double
     z:  [0 0], double
xunits:
yunits:
zunits:
--------------------------------
</pre></div>

<!-- --------------- NEXT EXAMPLE --------------- -->

<hr>
<h2 class="title"><a name="xml_file"></a>Construct a XYZDATA object by loading the object from a file</h2>
<p>The following example creates a new xyzdata object by loading the xyzdata object from disk.</p>
<div class="fragment"><pre class="programlisting">
xyz = xyzdata(<span class="string">'xyz.mat'</span>)
xyz = xyzdata(<span class="string">'xyz.xml'</span>)
</pre></div>

<!-- --------------- NEXT EXAMPLE --------------- -->

<hr>
<h2 class="title"><a name="z_data"></a>Construct a XYZDATA object from z-data</h2>
<p>Creates an xyz object with the given z-data.</p>
<div class="fragment"><pre class="programlisting">
z = randn(1000);

xyz = xyzdata(z)
-------- xyzdata 01 ------------

  name:  None
     x:  [1000 1], double
     y:  [1000 1], double
     z:  [1000 1000], double
xunits:
yunits:
zunits:
--------------------------------
</pre></div>

<!-- --------------- NEXT EXAMPLE --------------- -->

<hr>
<h2 class="title"><a name="x_y_z"></a>Construct a XYZDATA object from a x-data, y-data and z-data</h2>
<p>creates an xy-data object with the given (x,y)-data.</p>
<div class="fragment"><pre class="programlisting">
x = randn(1000,1);
y = randn(1000,1);
z = x*y';

xy = xyzdata(x,y,z)
-------- xyzdata 01 ------------

  name:  None
     x:  [1000 1], double
     y:  [1000 1], double
     z:  [1000 1000], double
xunits:
yunits:
zunits:
--------------------------------
</pre></div>


<!-- ------------------------------------------------ -->
<!-- --------------- END CONTENT FILE --------------- -->
<!-- ------------------------------------------------ -->