File Exchange

image thumbnail

Import of log files created by Presentation

version 1.2.0.0 (3.18 KB) by Tobias Otto
This function imports log files created by Presentation into MATLAB for analysis.

2 Downloads

Updated 11 Jul 2012

View License

After import the function creates two struct variables that contain all the data in a nicely ordered way. For every column in the log file a field entry with the same name is created.

The output variables are either a vector of structs (one entry per line in the log file) or a struct that contains vectors in each field. This makes it easy and hopefully flexible enough for everyone to start the analysis using MATLAB.

Cite As

Tobias Otto (2020). Import of log files created by Presentation (https://www.mathworks.com/matlabcentral/fileexchange/28793-import-of-log-files-created-by-presentation), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

thank you so much! saved me from a lot of trouble

Tobias Otto

Hi Alex, that's a good idea, thank you! Could you please provide me one of your log files in order to check my code before uploading it?
Thank you

Alex Vossen

Hi, thanks for this! I suggest adding an option to choose separators, my log files were comma separated (rather than tab), this can be easily adapted by changing the "9"s (tabs) in lines 169/179 (separator definition) and line 190 ("remove tab") with "44"s.

Updates

1.2.0.0

* Checking for duplicates in column names and renaming duplicates automatically
* Bugfix from Ben Cowley (thank you!)
* Speed optimization

1.1.0.0

Added error handling for log file entries that are not defined in the header line (line 4 in the presentation log file).

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux