Next: Function Files, Previous: Default Arguments, Up: Functions and Scripts [Contents][Index]
Octave is a weakly typed programming language. Thus it is possible to call a function with arguments, that probably cause errors or might have undesirable side effects. For example calling a string processing function with a huge sparse matrix.
It is good practice at the head of a function to verify that it has been called correctly. Octave offers several functions for this purpose.
• Validating the number of Arguments | ||
• Validating the type of Arguments | ||
• Parsing Arguments |