7
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Coursera Machine Learning ex6 の error対処法 (octave)

Posted at

CourseraのMachine Learning講義のweek7のプログラミング課題において、

error: get: unknown hggroup property Color
error: called from:
error:   /usr/local/octave/3.8.0/share/octave/3.8.0/m/plot/draw/private/__contour__.m at line 201, column 5
error:   /usr/local/octave/3.8.0/share/octave/3.8.0/m/plot/draw/contour.m at line 73, column 16
error:   /Users/***/machine-learning-ex6/ex6/visualizeBoundary.m at line 21, column 1
error:   /Users/***/machine-learning-ex6/ex6/ex6.m at line 109, column 1

といった様なエラーが頻発しているようです。
ここで、visualizeBoundary.m 内の

contour(X1, X2, vals, [0 0], 'Color', 'b');

contour(X1, X2, vals, [0 0], 'linecolor', 'blue');
とすれば解決するという記事を見つけましたが、私の環境では解決しませんでした。

私の環境では同じ行を
contour(X1, X2, vals, [1 1], 'LineColor', 'b');
とすることで解決したのでここに記しておきます。
※[0 0]ではなく[1 1]です。

7
3
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?