This document provides an overview of MATLAB programming concepts including:
1) Script and function m-files - Scripts have side effects while functions encapsulate code and use input/output parameters. Functions are preferable to scripts.
2) Flow control - MATLAB supports conditional execution and loops using relational operators and logical indexing. Vectorization avoids for-loops.
3) Input/output - Functions communicate through input and output arguments. disp and fprintf can output text while num2str converts numbers to strings.
4) Other topics - Variable number of arguments, indirect function calls, global variables, and inline functions.