unit Class


Properties Properties of the class
Methods All Methods of the class ordered by category.
Examples Some constructor examples

Back to Class descriptions Back to Class descriptions

Properties

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:

val = obj.prop(2).prop;
The set access is 'protected' and thus it is only possible to assign a value to a property with a set-method.
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

Back to Top Back to Top

Methods

Constructor Constructor of this class
Helper Helper methods only for internal usage
Output Output methods
Relational Operator Relational operator methods

Back to Top Back to Top

Constructor

Methods Description Defined in class

unit

UNIT a helper class for implementing units in LTPDA.

unit

Back to Top of Section Back to Top of Section

Helper

Methods Description Defined in class

get

GET get a property of a object.

ltpda_obj

isprop

ISPROP tests if the given field is one of the object properties.

ltpda_obj

string

STRING converts a unit object to a command string which will recreate the unit object.

unit

tolabel

TOLABEL converts a unit object to LaTeX string suitable for use as axis

unit

Back to Top of Section Back to Top of Section

Output

Methods Description Defined in class

display

DISPLAY display an unit object.

unit

factor

FACTOR factorises units in to numerator and denominator units.

unit

Back to Top of Section Back to Top of Section

Relational Operator

Methods Description Defined in class

eq

EQ overloads the == operator for ltpda unit objects.

unit

ne

NE overloads the ~= operator for ltpda unit objects.

unit

Back to Top of Section Back to Top of Section




©LTP Team