If the file name is in a cell (instead of a char array), which is the case for multi-run or multi-task scenarios, this print line will throw an error because it is expecting a string but gets a cell instead. I commented it out and things worked fine. Probably making nesting fileIn in char would resolve it: fprintf('Processing file %s\n', char(fileIn));
|
fprintf('Processing file %s\n', fileIn); |