✍️ Following MATLAB tutorials, in this tutorial, we will show the basics of MATLAB M-files functions. M-File functions are programs that accept input and return output arguments. We are going to find out the script side-effects and why should we use functions?  Moreover, we get familiar with the syntaxes of M-File functions and the differences between functions and scripts.