comparison m-toolbox/html_help/help/ug/constructor_examples_xyzdata_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_xyzdata_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_xyzdata.html#empty">Construct empty XYZDATA object</a>
12 </td>
13 </tr>
14 <tr>
15 <td>
16 <a href="constructor_examples_xyzdata.html#xml_file">Construct a XYZDATA object by loading the object from a file</a>
17 </td>
18 </tr>
19 <tr>
20 <td>
21 <a href="constructor_examples_xyzdata.html#z_data">Construct a XYZDATA object from z-data</a>
22 </td>
23 </tr>
24 <tr>
25 <td>
26 <a href="constructor_examples_xyzdata.html#x_y_z">Construct a XYZDATA object from a x-data, y-data and z-data</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 XYZDATA object</h2>
36 <p>The following example creates an empty xyzdata object</p>
37 <div class="fragment"><pre class="programlisting">
38 xyz = xyzdata()
39 -------- xyzdata 01 ------------
40
41 name: None
42 x: [0 0], double
43 y: [0 0], double
44 z: [0 0], double
45 xunits:
46 yunits:
47 zunits:
48 --------------------------------
49 </pre></div>
50
51 <!-- --------------- NEXT EXAMPLE --------------- -->
52
53 <hr>
54 <h2 class="title"><a name="xml_file"></a>Construct a XYZDATA object by loading the object from a file</h2>
55 <p>The following example creates a new xyzdata object by loading the xyzdata object from disk.</p>
56 <div class="fragment"><pre class="programlisting">
57 xyz = xyzdata(<span class="string">'xyz.mat'</span>)
58 xyz = xyzdata(<span class="string">'xyz.xml'</span>)
59 </pre></div>
60
61 <!-- --------------- NEXT EXAMPLE --------------- -->
62
63 <hr>
64 <h2 class="title"><a name="z_data"></a>Construct a XYZDATA object from z-data</h2>
65 <p>Creates an xyz object with the given z-data.</p>
66 <div class="fragment"><pre class="programlisting">
67 z = randn(1000);
68
69 xyz = xyzdata(z)
70 -------- xyzdata 01 ------------
71
72 name: None
73 x: [1000 1], double
74 y: [1000 1], double
75 z: [1000 1000], double
76 xunits:
77 yunits:
78 zunits:
79 --------------------------------
80 </pre></div>
81
82 <!-- --------------- NEXT EXAMPLE --------------- -->
83
84 <hr>
85 <h2 class="title"><a name="x_y_z"></a>Construct a XYZDATA object from a x-data, y-data and z-data</h2>
86 <p>creates an xy-data object with the given (x,y)-data.</p>
87 <div class="fragment"><pre class="programlisting">
88 x = randn(1000,1);
89 y = randn(1000,1);
90 z = x*y';
91
92 xy = xyzdata(x,y,z)
93 -------- xyzdata 01 ------------
94
95 name: None
96 x: [1000 1], double
97 y: [1000 1], double
98 z: [1000 1000], double
99 xunits:
100 yunits:
101 zunits:
102 --------------------------------
103 </pre></div>
104
105
106 <!-- ------------------------------------------------ -->
107 <!-- --------------- END CONTENT FILE --------------- -->
108 <!-- ------------------------------------------------ -->