Constructor examples of the HISTORY class


Construct empty HISTORY object
Construct a HISTORY object by loading the object from a file
Construct a HISTORY object with a name and version
Construct a HISTORY object with a name, version and parameter list
Construct a HISTORY object with a with this name, version, parameter list, and vector of input history objects

Construct empty HISTORY object

The following example creates an empty history object.

h1 = history()
-------- None / $Id: history.m,v 1.21 2008/03/17 09:16:36 mauro Exp

created: 2008-03-30 15:25:55.503
Inputs:
Parameters
----------
----------- plist 01 -----------
n params: 0
--------------------------------

Histories
---------
n input histories: 0

--------------------------------------------------------------------------

Construct a HISTORY object by loading the object from a file

h1 = history('h1.mat')
h1 = history('h1.xml')

Construct a HISTORY object with a name and version

h1 = history('my name', 'my ver')

The h1 property 'name' have the content 'my name' and the h1 property 'version have the content 'my version'


Construct a HISTORY object with a name, version and parameter list

pl = plist('key', 'value');

h1 = history('my name', 'my ver', pl)

Construct a HISTORY object with a with this name, version, parameter list, and vector of input history objects

pl     = plist('key', 'value');
histin = [history('fcn1_1', 'Ver') history('fcn1_2', 'ver')];

h1 = history('fcn2', 'ver', pl, histin)
Launchbay

This picture illustrates the hierarchy of the history objects.




©LTP Team