Construct empty XYZDATA object
Construct a XYZDATA object by loading the object from a file
Construct a XYZDATA object from z-data
Construct a XYZDATA object from a x-data, y-data and z-data

Construct empty XYZDATA object

The following example creates an empty xyzdata object

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

  name:  None
     x:  [0 0], double
     y:  [0 0], double
     z:  [0 0], double
xunits:
yunits:
zunits:
--------------------------------

Construct a XYZDATA object by loading the object from a file

The following example creates a new xyzdata object by loading the xyzdata object from disk.

xyz = xyzdata('xyz.mat')
xyz = xyzdata('xyz.xml')

Construct a XYZDATA object from z-data

Creates an xyz object with the given z-data.

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:
--------------------------------

Construct a XYZDATA object from a x-data, y-data and z-data

creates an xy-data object with the given (x,y)-data.

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:
--------------------------------