This document provides an introduction to programming in MATLAB using MOOCs. It discusses: 1. How the rand function generates random numbers between 0 and 1, and how multiplication and addition can stretch or shift this range. 2. How to return multiple variables from a function using brackets, and how to call such a function assigning the results to multiple variables. 3. Examples of defining functions, subfunctions, and global variables in MATLAB.