Module 3: User Defined Functions

Reflecting really means two things: thinking and expressing one's thoughts.

  1. How would you take the first programming assignment and write it as a m-file function?
  2. How would you write a m-file script that would run this function?
  3. What are other programming concepts that you feel would make this module more effective?
  4. I would like to suggest that we look at actually testing the user's input to see if the value entered was in the range we requested?

  5. This leads into considering new MATLAB programming constructions such as: logical tests

Page author: Dr. Kris Stewart
URL: http://www.stewart.cs.sdsu.edu/cs205/module3/Reflect.html
Last updated: Feb. 11, 1998