•There are two kinds of M-files:
•Scripts, which do not accept input arguments or return output arguments. They operate on data in the workspace
•Functions, which can accept input arguments and return output arguments. Internal variables are local to the function