Mercurial > hg > ltpda
comparison m-toolbox/html_help/help/ug/constructor_examples_xydata_content.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 <!-- $Id: constructor_examples_xydata_content.html,v 1.1 2008/03/30 20:40:04 ingo Exp $ --> | |
2 | |
3 <!-- -------------------------------------------------- --> | |
4 <!-- --------------- BEGIN CONTENT FILE --------------- --> | |
5 <!-- -------------------------------------------------- --> | |
6 | |
7 <!-- --------------- Link box: begin --------------- --> | |
8 <table border="0" summary="Simple list" class="simplelist_nottable_last"> | |
9 <tr> | |
10 <td> | |
11 <a href="constructor_examples_xydata.html#empty">Construct empty XYDATA object</a> | |
12 </td> | |
13 </tr> | |
14 <tr> | |
15 <td> | |
16 <a href="constructor_examples_xydata.html#xml_file">Construct a XYDATA object by loading the object from a file</a> | |
17 </td> | |
18 </tr> | |
19 <tr> | |
20 <td> | |
21 <a href="constructor_examples_xydata.html#y_vector">Construct a XYDATA object from a y-data vector</a> | |
22 </td> | |
23 </tr> | |
24 <tr> | |
25 <td> | |
26 <a href="constructor_examples_xydata.html#x_y_vector">Construct a XYDATA object from a x-data and y-data vector</a> | |
27 </td> | |
28 </tr> | |
29 </table> | |
30 <!-- --------------- Link box: end --------------- --> | |
31 | |
32 <!-- --------------- NEXT EXAMPLE --------------- --> | |
33 | |
34 <hr> | |
35 <h2 class="title"><a name="empty"></a>Construct empty XYDATA object</h2> | |
36 <p>The following example creates an empty xydata object</p> | |
37 <div class="fragment"><pre class="programlisting"> | |
38 xy = xydata() | |
39 -------- xydata 01 ------------ | |
40 | |
41 name: None | |
42 x: [0 0], double | |
43 y: [0 0], double | |
44 xunits: | |
45 yunits: | |
46 ------------------------------- | |
47 </pre></div> | |
48 | |
49 <!-- --------------- NEXT EXAMPLE --------------- --> | |
50 | |
51 <hr> | |
52 <h2 class="title"><a name="xml_file"></a>Construct a XYDATA object by loading the object from a file</h2> | |
53 <p>The following example creates a new xydata object by loading the xydata object from disk.</p> | |
54 <div class="fragment"><pre class="programlisting"> | |
55 xy = xydata(<span class="string">'xy.mat'</span>) | |
56 xy = xydata(<span class="string">'xy.xml'</span>) | |
57 </pre></div> | |
58 | |
59 <!-- --------------- NEXT EXAMPLE --------------- --> | |
60 | |
61 <hr> | |
62 <h2 class="title"><a name="y_vector"></a>Construct a XYDATA object from a y-data vector</h2> | |
63 <p>Creates an xy data object with the given y-data.</p> | |
64 <div class="fragment"><pre class="programlisting"> | |
65 y = randn(1000,1); | |
66 | |
67 xy = xydata(y) | |
68 </pre></div> | |
69 | |
70 <!-- --------------- NEXT EXAMPLE --------------- --> | |
71 | |
72 <hr> | |
73 <h2 class="title"><a name="x_y_vector"></a>Construct a XYDATA object from a x-data and y-data vector</h2> | |
74 <p>creates an xy-data object with the given (x,y)-data.</p> | |
75 <div class="fragment"><pre class="programlisting"> | |
76 y = randn(1000,1); | |
77 x = 1:length(y); | |
78 | |
79 xy = xydata(x,y) | |
80 </pre></div> | |
81 | |
82 | |
83 <!-- ------------------------------------------------ --> | |
84 <!-- --------------- END CONTENT FILE --------------- --> | |
85 <!-- ------------------------------------------------ --> |