Creating Parameters


Parameter objects are used in the LTPDA Toolbox to configure the behaviour of algorithms. A parameter (param) object has two main properties:

See param class for further details. The 'key' property is always stored in upper case. The 'value' of a parameter can be any LTPDA object, as well as most standard MATLAB types.

Parameter values can take any form: vectors or matrices of numbers; strings; other objects, for example a specwin (spectral window) object.

Parameters are created using the param class constructor. The following code shows how to create a parameter 'a' with a value of 1

	>> p = param('a', 1)
	---- param 1 ----
	key: a
	val: 1
	-----------------
  

The contents of a parmeter object can be accessed as follows:

	>> key = p.key;  % get the parameter key
	>> val = p.val;  % get the parameter value
  




©LTP Team