This document summarizes key points from Lecture 2 of the Introduction to Programming in MATLAB course. It discusses user-defined functions, including function declarations and overloading functions. Flow control statements like if/else and for loops are explained. Various plotting functions and options are covered, such as line, image, surface, and 3D plots. Advanced plotting exercises demonstrate modifying a plotting function to include conditionals and subplotting multiple axes. Specialized plotting functions like polar, bar, and quiver are also mentioned.