BTK Matlab Wrapper  0.3dev.0
Matlab bindings for the Biomechanical ToolKit library (BTK)
Field's name format in extracted structures

Character conversion

Matlab has a restricted the list of characters usable for a field's name in a structure. These characters are the capital letters between A and Z, the minuscule letters between a and z, the number 0 to 9 and the symbol underscore '_'. Every letters with an accent will be replaced by the same letter without the accents. Other ASCII characters used in the label (e.g -,*,%,...) will be replaced by the character '_'. Moreoever, it is not possible to start a field's name by a number. Every label starting by a number will be prefixed by the string 'C_'. In the case where two measure has the same label, then the second one is suffixed with '_1'. In the case where more than two measures has the same label, the suffix will increment each time.

For example, if one marker has the label uname*1 in the acquisition represented by the handle acq. Then using the code markers = btkGetMarkers(acq) will return the structure markers where one of its field will have the name uname_1. The characters '*' will be converted by '_'.

Other examples:

You can access to the original (true) label of the points and the analog channels by using the content of the field label proposed in the last output of the function btkGetPoints, btkGetPoint, btkGetAnalogs, and btkGetAnalog.