[Tex/LaTex] LaTeX symbol for single quote mark that MATLAB will recognize

csquotesMATLABsymbols

I'm writing MATLAB code in LaTeX and I would like to be able to cut and paste it directly into the MATLAB command window. One critical symbol is the ' (single quote). When processed by LaTeX it shows up as a curly quote sign, which MATLAB doesn't recognize. I've looked through the "Comprehensive Symbol Table", but I couldn't find anything. The csquotes package looks as though it might be helpful, but I found the manual incomprehensible.

Best Answer

Discovered the answer, related to Paul Gessler's comment. There's a wonderful style file called mcode.sty that uses the listings package but seems to deal with some of it's shortcomings.

http://www.mathworks.com/matlabcentral/fileexchange/8015-m-code-latex-package