11 Functions and Scripts

Last-modified: 2025-03-09 (日) 20:28:59

11 関数とスクリプト

複雑な Octave プログラムは、多くの場合、関数を定義することで簡素化できます。関数は、対話型 Octave セッション中にコマンド ラインで直接定義することも、外部ファイルで定義することもでき、組み込み関数と同じように呼び出すことができます。

Introduction to Function and Script Files
Defining Functions
Returning from a Function
Multiple Return Values
Variable-length Return Lists
Variable-length Argument Lists
Ignoring Arguments
Default Arguments
Validating Arguments
Function Files
Script Files
Function Handles and Anonymous Functions
Command Syntax and Function Syntax
Organization of Functions Distributed with Octave