![]()
Module 4: Modular Programming/Reflect
Reflecting really means two things: thinking and expressing one's thoughts. In the context of CS 205, we will interpret this to mean documenting your programs.
It is a good practice to start every MATLAB m-file you write with comments, which are lines in the file which begin with %. These comments should give the name of the file, the name of the author (you), and a description of what the m-file accomplishes. MATLAB provides a help facility for its commands, that you've used earlier as we explore new MATLAB commands, but you should know that the m-file you write automatically provide information through the help environment based on your initial set of comments. Try
help getinput
at the MATLAB prompt (>>).
Page author: Dr. Kris Stewart
URL: http://www.stewart.cs.sdsu.edu/cs205/module4/Reflect.html
Last updated: Feb. 18, 1998