In this module, you will learn to write script and functions; the building blocks of analysis with Matlab.
At the end of this module you will be able to:
- Write well-formed functions, including help text, and documentation
- Decide when to use for- or while- loops
- Use conditional execution to solve complex program flow.
- Handle errors as they occur during script execution.
Don't just watch/read, but try out the examples on your own computer. You learn by doing.
Lesson 3 (Week 4) on Coursera - Functions
- Section 11. MATLAB Scripts
- Section 13. Programming
YouTube Tutorials:
- Beginner's Matlab Tutorial (8/15) - Functions
- Beginner's Matlab Tutorial (6/15) - For Loops
- Beginner's Matlab Tutorial (7/15) - If Statements
- While loops
On the Matlab Grader site you'll find [Elementary Matlab (functions)](Matlab Grader (optional supplementary practice)) and [Scripts, Functions, & Flow Control](Matlab Grader (optional supplementary practice)) assignments to test your skills.