タグ別アーカイブ: MATLAB

macでOctaveを使う

MATLABが必要になったのだけれど、そんな物を買う予算がある訳もなし、
Octaveをインストールしてみました。

すんなりは動作せず。

No Java runtime present, requesting install.

Javaはインストール済みだけど、ここで必要なのは Java6のruntimeらしい。

そこで、Apple Support Communities の “Java SE 6 on Yosemite?”
https://discussions.apple.com/thread/6601242?start=15&tstart=0

を参考に、以下のURLからパッケージを取得してインストール。
https://support.apple.com/kb/DL1572?locale=ja_JP

無事、OctaveがMacBokkAirで動作するようになりました。

ワーニングは結構でますね。

warning: docstring file ‘/usr/local/Cellar/octave/3.8.1_1/share/octave/3.8.1/etc/built-in-docstrings’ not found
GNU Octave, version 3.8.1
Copyright (C) 2014 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. For details, type ‘warranty’.

Octave was configured for “x86_64-apple-darwin14.1.0”.

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type ‘news’.

warning: /Users/**/**.m: possible Matlab-style short-circuit operator at line 81, column 76
warning: /Users/**/**.m: possible Matlab-style short-circuit operator at line 81, column 49
error: invalid use of script /Users/*/*.m in index expression

ワーニングの方は、元のソースが ‘&’ と ‘&&’ を混同していたため。
エラーの方は、

少し手直しすれば、MATLABのソースが動きそう。