Fix unexpected MATLAB expression error when running file on different computer

  • Context: MATLAB 
  • Thread starter Thread starter arashna
  • Start date Start date
  • Tags Tags
    Expression Matlab
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 7K views
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?
 
Physics news on Phys.org
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?