(番外編) octave のインストール(Windows) - BYOD PC のセッティング(22)

はじめに

例年の第五学年の信号処理の授業では、Mac 室にて MATLAB を使って演習を行なっていた。残念ながら MATLAB を学生が利用することはできないので、互換ソフトウェアである octave をインストールしてもらう。

インストール

SourceForge などでバイナリパッケージをインストールしてもよい。Chocolatey をインストールしているのであれば、管理者モードの PowerShell にてcinst -y octaveで簡単にインストールできる。cinst については、 パッケージ管理ソフトウェアの設定(Windows) - BYOD PC のセッティング(4) - hkob’s blogに記載しているので、参考にして欲しい。

PS C:\Windows\system32> cinst -y octave
Chocolatey v0.10.15
Installing the following packages:
octave
By installing you accept licenses for the packages.
Progress: Downloading octave.install 5.1.0... 100%
Progress: Downloading autohotkey.install 1.1.32.00... 100%
Progress: Downloading Octave 5.1.0... 100%

autohotkey.install v1.1.32.00 [Approved]
autohotkey.install package files install completed. Performing other installation steps.
Installing autohotkey.install...
autohotkey.install has been installed.
AutoHotkey* installed to 'C:\Program Files\AutoHotkey'
AutoHotkey* registered as AutoHotkey
  autohotkey.install may be able to be automatically uninstalled.
 The install of autohotkey.install was successful.
  Software installed as 'exe', install location is likely default.

octave.install v5.1.0 [Approved]
octave.install package files install completed. Performing other installation steps.
Downloading octave.install 64 bit
  from 'https://ftpmirror.gnu.org/octave/windows/octave-5.1.0-w64-installer.exe'
Progress: 100% - Completed download of C:\Users\hkob\AppData\Local\Temp\chocolatey\octave.install\5.1.0\octave-5.1.0-w64-installer.exe (286.41 MB).
Download of octave-5.1.0-w64-installer.exe (286.41 MB) completed.
Hashes match.
Installing octave.install...
octave.install has been installed.
  octave.install may be able to be automatically uninstalled.
 The install of octave.install was successful.
  Software installed as 'exe', install location is likely default.

Octave v5.1.0 [Approved]
octave package files install completed. Performing other installation steps.
 The install of octave was successful.
  Software install location not explicitly set, could be in package or
  default install location if installer.

Chocolatey installed 3/3 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

実行テスト

Octave GUI を起動して、立ち上がった画面で、次のようなコマンドを入れてみる。二次関数のグラフが表示されれば成功である。

plot(0:10, (0:10).^2)

詳しい使い方は授業中に説明する。

hkob.hatenablog.com