Construct empty XYDATA object
Construct a XYDATA object by loading the object from a file
Construct a XYDATA object from a y-data vector
Construct a XYDATA object from a x-data and y-data vector

Construct empty XYDATA object

The following example creates an empty xydata object

xy = xydata()
-------- xydata 01 ------------

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

Construct a XYDATA object by loading the object from a file

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

xy = xydata('xy.mat')
xy = xydata('xy.xml')

Construct a XYDATA object from a y-data vector

Creates an xy data object with the given y-data.

y  = randn(1000,1);

xy = xydata(y)

Construct a XYDATA object from a x-data and y-data vector

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

y  = randn(1000,1);
x  = 1:length(y);

xy = xydata(x,y)