Writing a Function

In this screencast:

  • Converting the simple script example into a function
  • Explanation of the function definition line
  • Explanation of variables being local to a function

Download m-file: my_circle_fn.m