数値解析ソフト GNU Octave

Octave (オクターブ) は、数値解析処理ソフトの一つで、GNU から配布されているパブリックドメインのソフトウェアです。

これは、制御系解析のツールとして企業等でも広く使われているMATLAB という市販ソフトに用いられている言語系と互換性があります。

Octave のグラフ機能は、gnuplot を利用して実現しています。MATLAB のグラフ機能の多くは、そのまま octave でも利用できますが、利用できない機能もありますので、注意が必要です。

  1. Octave の起動
    333 luna:ushimaru > octave
    Octave, version 2.0.9 (i386-unknown-freebsd2.2.1).
    Copyright (C) 1996, 1997 John W. Eaton.
    This is free software with ABSOLUTELY NO WARRANTY.
    For details, type `warranty'.
    
    octave:1> 
    
  2. On-line help

    help [関数 or コマンド名] とすると、octave に用意されている 関数やコマンドの意味や引数の説明が出て来ます。 また、引数なしで、help とタイプすると、全ての関数、コマンドリスト が表示されます。

    octave:5> help eig
    eig is a builtin function
    
    eig (X) or [V, D] = eig (X): compute eigenvalues and eigenvectors of X
    
    Additional help for builtin functions, operators, and variables
    is available in the on-line version of the manual.
    
    Use the command `help -i ' to search the manual index.
    
  3. 行列の扱い

  4. 連立一次方程式 ( A x = b )
    octave:9> b = [1 ; 2; -2]
    b =
    
       1
       2
      -2
    
    octave:10> x = inv(A)*b
    x =
    
      -1
       1
       0
    


Last update: February 4,1998 by ushimaru@ece.numazu-ct.ac.jp