I am currently trying to implement my Matlab-Code into TeX. Weird enough, when programming a minimum working example, everything works pretty fine. However, when I use my real document, I only get errors. Here the MWE:
\documentclass{article}
\usepackage[numbered]{mcode}
\definecolor{lightgray}{rgb}{0.9,0.9,0.9}
\renewcommand{\lstlistingname}{Quellcode}
\lstset{backgroundcolor=\color{lightgray},
linewidth=15.5cm,}
\begin{document}
\lstinputlisting[label={hans}, caption=Funktion {\ttfamily setminInt}]
{"E:/Program Files/MATLAB/projects/master/classes/Customer.m"}
\end{document}
Here's the preamble of the original document (although heavily shortened):
\documentclass[a4paper,12pt,parskip,bibtotoc,liststotoc]{article}
\usepackage{fontenc}
\usepackage[ngerman, english]{babel}
\usepackage{setspace} %fr Zeilenabstand
\usepackage[notindex,nottoc]{tocbibind} %Inhaltsverzeichnisse erstellen
%zustzliche bentigte Pakete
\usepackage{graphicx} %Graphik
\usepackage{amsmath,amssymb} %Mathematik
\usepackage{natbib} %Zitate
\usepackage{marvosym} %enthlt Symbole wie das Eurozeichen
\usepackage{eurosym}
%\setcounter{secnumdepth}{3}
%\setcounter{tocdepth}{3}
\usepackage[numbered]{mcode}
\definecolor{lightgray}{rgb}{0.9,0.9,0.9}
\renewcommand{\lstlistingname}{Source Code}
\lstset{backgroundcolor=\color{lightgray},
linewidth=15.5cm,}
\setlength{\parskip}{3pt} % 1ex plus 0.5ex minus 0.2ex}
\usepackage{mdwlist}
\usepackage[labelsep=space,justification=centering]{caption}
%\usepackage{hyperref} %erlaubt Links innerhalb des pdf-Dokuments zu erzeugen
\setlength{\parindent}{0pt} %Verhinderung des horizontalen Einrckens zu Beginn eines Absatzes
%Seitenlayout
\topmargin -0.9cm %Vertikaler Abstand der Kopfzeile von der Bezugslinie
\textheight 25cm %Abstand der Grundlinie der Kopfzeile zum Haupttext
\textwidth 16.5cm %Breite des Haupttexts
\footskip 1cm %Abstand der Grundlinien der letzten Textzeile und der Fuzeile
\voffset -0.5cm %Vertikale Bezugspunktposition
\hoffset -1.2cm %Horizontale Bezugspunktposition
\onehalfspacing %anderthalbzeiliger Abstand
\newcommand{\url}{\;} %URL im Literaturverzeichnis
\begin{document}
\lstinputlisting[caption=Funktion {\ttfamily setminInt}]
{"E:/Program Files/MATLAB/projects/master/classes/Customer.m"}
\end{document}
I always get the error: ("E:\Program Files (x86)\MiKTeX 2.9\tex\latex\psnfss\ot1pcr.fd")) ! Incomplete \iffalse; all text was ignored after line 560.
So miktex ignores everything that's written in the customer class (the code starts at line 560)

matlab-prettifierpackage; it improves uponmcodein many ways. See this answer, for instance. Also, contrary tomcode, it's available in MiKTeX. – jub0bs Sep 06 '14 at 14:32