MATLAB2PDF(FILENAME,VARARGIN) generates a 'standalone' LaTeX file using matlab2tikz and compiles this directly to PDF with pdflatex. It cleans up temporary files after compilation. MATLAB2PDF(FILENAME ...