Usually MATLAB tells you the line of code that it's having difficulty interpreting. Is it possible that at some point you "uncommented" some text? Are you transferring your code from one version to another version of MATLAB?