This section contains information on how to use the EventDatabase generated by the program.
The event database generated by the program is an array (vector) of structures. A structure is a data type that groups related data using data containers called fields. Each field can contain data of any type or size. Such types of variables are very readable and the desired information can be found very quickly.
Double-click on the EventDatabase variable opens the variable editor. Each field in this array corresponds to one event. The row number is thus the number of the event as it occured in the raw signal.
Another double click on one of the structure-fields reveals the informations about the given event.
The command EventDatabase(i), where i is the desired event number, displays all the fields of this structure.
The command EventDatabase(i).Fieldname gives direct access to the desired information. Remember Fieldname has to be one of the variables specified before.
The command a=[{EventDatabase.Levels}]' exports the level informations of all the events to the variable a. If you want to export only a fraction of the events, you can use: a=[{EventDatabase(1-10).Levels}]', which in this case exports only events 1 to 10. The same syntax applies to other fields.
The command cell2mat(a) can convert the before created cell array to one single matrix containing the level informations of all the events. Conversion to a single matrix is only possible for fields with constant row-size, i.e. all the fields except 'AllLevelFits' and 'EventType'.