A Matlab script to convert the raw .csv Hitachi ETG4000 output file into a .nirs file for use with Homer2. The script also requires a .pos file. This is the output of the polhemus 3D digitiser that we use to record where the optodes are located spatially. I realise that not everyone uses a 3D digitiser so I have included three example .pos files - one for each of the possible optode arrangements of the Hitachi system (either two 3x3 arrays, one 3x5 array or one 4x4 array). If you use a different arrangement or have more probes than us, feel free to get in touch and I may be able to advise on how to create a model .pos file.

There are two versions of the conversion script:
1. single - this will read in ONE .csv file and ONE .pos file and create ONE .nirs file
2. multi - this will read in a user-specified number of .csv files and ONE .pos file. It will then create one .nirs file for each .csv file that was read in and deposit it in the same directory as that .csv file.

Execution Options

Download Now:


BSD License
Natural Language:
Programming Language: