MATLAB: CellVectors = raw(:,[1,14]);//index exceeds matrix dimension

Look up the documentation of cellfun. You can open it in Matlab by typing doc cellfun.
Also, have a read here and here. It will greatly improve your chances of getting an answer.

Best Answer

This awkwardly written code assumes that the excel files have at least 14 columns of data in Sheet1. Clearly, your file hasn't. The code is not designed to work with files with less columns so you need to fix your files.