Clone
1
EmosMatlab
Cedric Roux edited this page 2016-01-17 19:13:39 +01:00

This page gives an overview of the functions and scripts available in the EMOS Matlab toolbox. A detailed documentation is given within the source code. The source code as well as some example scripts are available in the openair1 SVN repository in EMOS/MATLAB/import_filer/.

---+ Data structure

The EMOS GUI creates a binary file for each measurement. The file contains the estimated channel data as well as metadata, such as crc and gps data. The filename has the following format:

data_term3_idx59_20080424_170120.EMOS

  • term3 indicates that the file originates from terminal number 3.
  • idx59 is the index of the current measurement (it is increased automatically in multiuser mode).
  • 20080424_170120 indicates the date and time of the measurement. For multiuser measurements, files with the same indices go together. The times can differ, since they represent the clock of each laptop. For example,

data_term1_idx59_20080424_170123.EMOS data_term2_idx59_20080424_170150.EMOS data_term3_idx59_20080424_170104.EMOS data_term4_idx59_20080424_170120.EMOS

---+ Import Filter

Three kinds of import filters to load the .EMOS files into Matlab exist. Each one can be used for singe user or multiuser mode.

| | Single User | Multi User | | simple | load_estimates | load_estimates_MU | | only metadata | load_estimates_no_channel | load_estimates_MU_no_channel | | low memory | load_estimates_lm | load_estimates_MU_lm |

The "simple" filters load the contents of the whole measurement file into one array. This might need a lot of memory in Matlab. The "only metadata" routines only read the metadata from the file. The "low memory" filters load the data in chunks. It requires the file to be opened before the first call and closed after the last call. An example is provided in eval_data_MU_DProf.m

-- User.FlorianKaltenberger - 12 Jun 2008