Topic outline
-
Module 5 - Function M-Files
Learning Objectives/Outcomes
By the end of this module you will be able to:
- Understand the purpose of function M-files
- Create a function M-file
- Apply commands that operate on functions, such as fzero and fplot.
- Create function files from provided code.
To help you master this topic we have a series of activities for you to complete over a 1 week period. Please allow at least 2 hours to complete these activities. All links will open in a new window.
READING
Read Section 6 of Introduction to MATLAB. If you have any questions about function m-files within MATLAB, please raise this in this discussion forum.DEMONSTRATION
Watch these demonstration videos. MATLAB notes are available.Please raise any questions in this discussion forum.
-
-
-
-
- Function m-files in MATLAB (7.13)
- Quadroots (6.23)
- myRand (8.05).
-
-
-
PRACTICAL
Your practical provides you with an opportunity to create commands that work on functions, that is Function m-files. If you have any questions about this practical, please raise this in this discussion forum. Create a response document using this template. Submit your completed response document for formative feedback.