arnodelorme / mffmatlabio

MFF Matlab file importer and exporter
GNU General Public License v3.0
11 stars 15 forks source link

MFF export issue with EEG data without events #35

Closed synchen232 closed 3 years ago

synchen232 commented 3 years ago

Hello, there is a issue when I output mff file by mff_export with EEG data which dose not have events. the mff_export shows error:

Dot indexing is not supported for variables of this type.

Error in mff_exportevents (line 78)
    if ~all(cellfun(@(x)isequal(x, 'boundary'), {events(indEvents).type}))

Error in mff_export (line 58)
mff_exportevents(EEG, outputFile);

The program in line78 access the variable "events" whatever it will be exist, I think that is be the reason cause the error during output.

arnodelorme commented 3 years ago

Thank you. This has been fixed in 568a00e