MATLAB: Command window treats ‘ as apostrophe

invalidinvalid textMATLABtext character

when copying text into command window, it treats the ' symbol as an apostrophe, and gives an error. As the image below shows, when I go in and replace the slanted apostrophe with the ' on the command line, the code works fine. how can I get the command window to see the ' the first time instead of the slanted symbol? I have Matlab win10, not Matlab mobile, so I can't access any iSO to fix it.

Best Answer

Thank you both for your input, especially RE insights on ASCII character set. That should resolve my issue.