The MATLAB program also uses the.p file extension. AnyDWG DWG to PDF Converter is a batch converter that allows you to. I've quite literally copied and pasted this piece of code from this article on Matlab Central.
Ordinary script files have the problem that they run in the scope of the command window.
Both are plain ASCII files containing Matlab commands, with '.m' file extensions.