Fix unexpected MATLAB expression error when running file on different computer

1 reply · 7K views · last reply
arashna
Messages
3
Reaction score
0
I write MATLAB program on my computer but when I copy the file to another computer and press F5 to run, there is a message 'unexpected MATLAB expression'
what should I do?
 
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?