Summary
In this lesson you have:
- learnt how to create anonymous functions using the @ character. These anonymous functions may have several input arguments and use the values of parameters when they are defined.
- learnt how to create function M-files, which may then be called from any MATLAB program.
- learnt how to make function m-files self-documenting by including comments at the beginning describing the purpose of the function and the input and output arguments;
- learnt how to determine the number of input arguments or the number of output arguments that a function was called with and how this can be used to set default values.
MATLAB online test 9
You should now complete MATLAB online test 9 which you will find on Mobius .