앞으로: Function Files, 뒤로: Default Arguments, 위로: Functions and Scripts [차례][찾아보기]
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: |