M-files are nothing but just a plain ASCII script that is interpreted at run time. We can say these are the subprograms stored in text files with .m extensions and are known as M-files. M-files are used for most of the MATLAB development, and platform independence and maintainability. It is parsed once and "just-in-time" compiled, but it is also transparent to the customer.