I'm using mcode package to insert into my document matlab code. I would change the default font. what command I should use to get this font?

I'm using mcode package to insert into my document matlab code. I would change the default font. what command I should use to get this font?

The mcode.sty file has a "Customize here" section.
Change
\def\lstbasicfont{\fontfamily{pcr}\selectfont}
into
\def\lstbasicfont{\ttfamily}
and you'll get the default fixed width font instead of Courier. Or
\def\lstbasicfont{\fontfamily{lmtt}{\selectfont}}
that will choose the Latin Moder Typewriter font, which has also a boldface variant.
\usepackage{fontspec}\setmonofont{Latin Modern Mono}in your preamble. – Silke Dec 06 '12 at 12:34matlab-prettifierpackage; see this answer. – jub0bs Apr 28 '14 at 15:31