view m-toolbox/html_help/help/ug/constructor_examples_xydata_content.html @ 40:977eb37f31cb database-connection-manager

User friendlier errors from utils.mysql.connect
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 18:04:03 +0100
parents f0afece42f48
children
line wrap: on
line source

<!-- $Id: constructor_examples_xydata_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_xydata.html#empty">Construct empty XYDATA object</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_xydata.html#xml_file">Construct a XYDATA object by loading the object from a file</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_xydata.html#y_vector">Construct a XYDATA object from a y-data vector</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_xydata.html#x_y_vector">Construct a XYDATA object from a x-data and y-data vector</a>
    </td>
  </tr>
</table>
<!-- --------------- Link box: end --------------- -->

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

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

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

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

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

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

<hr>
<h2 class="title"><a name="y_vector"></a>Construct a XYDATA object from a y-data vector</h2>
<p>Creates an xy data object with the given y-data.</p>
<div class="fragment"><pre class="programlisting">
y  = randn(1000,1);

xy = xydata(y)
</pre></div>

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

<hr>
<h2 class="title"><a name="x_y_vector"></a>Construct a XYDATA object from a x-data and y-data vector</h2>
<p>creates an xy-data object with the given (x,y)-data.</p>
<div class="fragment"><pre class="programlisting">
y  = randn(1000,1);
x  = 1:length(y);

xy = xydata(x,y)
</pre></div>


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