|
The LTPDA toolbox restrict access of the properties.
The get access is 'public' and thus it is possible to get the values with the dot-command (similar to structures).
For example:The set access is 'protected' and thus it is only possible to assign a value to a property with a set-method.
val = obj.prop(2).prop;
For example: obj2 = obj1.setName('my name') % This command creates a copy of obj1 (obj1 ~= obj2) obj.setName('my name'); % This command applies to obj
Properties | Description | Defined in class |
---|---|---|
strs |
Unit character |
unit |
exps |
Exponent of the unit |
unit |
vals |
Number of the used unit prefix (mm -> 1e-3) |
unit |
version |
CVS version string of the constructor |
unit |
|
Methods | Description | Defined in class |
---|---|---|
UNIT a helper class for implementing units in LTPDA. |
unit |
Methods | Description | Defined in class |
---|---|---|
GET get a property of a object. |
ltpda_obj |
|
ISPROP tests if the given field is one of the object properties. |
ltpda_obj |
|
STRING converts a unit object to a command string which will recreate the unit object. |
unit |
|
TOLABEL converts a unit object to LaTeX string suitable for use as axis |
unit |
Methods | Description | Defined in class |
---|---|---|
DISPLAY display an unit object. |
unit |
|
FACTOR factorises units in to numerator and denominator units. |
unit |
Methods | Description | Defined in class |
---|---|---|
EQ overloads the == operator for ltpda unit objects. |
unit |
|
NE overloads the ~= operator for ltpda unit objects. |
unit |