Module 3: User Defined Functions

A pplying

these concepts in the example cows which you can run within the MATLAB environment now.

In a separate window, start MATLAB. Then at the MATLAB prompt (>>)

  1. type cows
  2. type runcows
  3. runcows

Another example is ready for your investigation that is based on the help function example. Again at the MATLAB prompt, in a separate MATLAB window.

  1. type runstat1
  2. type stat1
  3. runstat1

As a final exploration, I invite you to look at a gallery of sample graphics results. This involves a lengthy file which you won't likely want to look at right away. Just run this demonstration - in a MATLAB windows -

graph205

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