data.event_list{i} or data.file_list{i} contains a cell array and needs to have single entries selected from them.
Normally {i} would be enough, but sometimes people accidentally end up with multiple levels of cell where they only expect one level. You should look at what is contained in data.event_list{i} or data.file_list{i}
Best Answer