0
0

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.

Raspberry PiにOctaveをインストール

Last updated at Posted at 2018-08-23

はじめに

MATLABを買うお金がもったいないので、Octaveで遊ぶことにした。
Raspberry Piが趣味用開発マシンになってきているので、Raspberry Piに入れてみた。

インストール

こんな感じ。

sudo apt-get update
sudo apt-get install octave

エラー出た。

Processing triggers for libc-bin (2.24-11+deb9u1) ...
Errors were encountered while processing:
 ca-certificates-java
 openjdk-8-jre-headless:armhf
 default-jre-headless
E: Sub-process /usr/bin/dpkg returned an error code (1)

よくわからんけど、ここを見て
missing jvm server - Raspberry Pi Forums
とりあえず、こんなん打ってみた。

sudo apt-get purge openjdk-8-jre-headless
sudo apt-get install openjdk-8-jre-headless
sudo apt-get install openjdk-8-jre

もう一度、インストールしようとすると、すでにあるって言われる。
なんやなんや?よくわからん。まあ、入ってるならいいか。

pi@raspberrypi:~ $ sudo apt-get install octave
Reading package lists... Done
Building dependency tree       
Reading state information... Done
octave is already the newest version (4.0.3-3).
The following packages were automatically installed and are no longer required:
  gyp libjs-inherits libjs-node-uuid libuv1 libuv1-dev node-abbrev node-ansi
  node-ansi-color-table node-archy node-async node-balanced-match node-block-stream
  node-brace-expansion node-builtin-modules node-combined-stream node-concat-map
  node-cookie-jar node-delayed-stream node-forever-agent node-form-data
  node-fs.realpath node-fstream node-fstream-ignore node-github-url-from-git
  node-glob node-graceful-fs node-gyp node-hosted-git-info node-inflight
  node-inherits node-ini node-is-builtin-module node-isexe node-json-stringify-safe
  node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp
  node-mute-stream node-node-uuid node-nopt node-normalize-package-data node-npmlog
  node-once node-osenv node-path-is-absolute node-pseudomap node-qs node-read
  node-read-package-json node-request node-retry node-rimraf node-semver node-sha
  node-slide node-spdx-correct node-spdx-expression-parse node-spdx-license-ids
  node-tar node-tunnel-agent node-underscore node-validate-npm-package-license
  node-which node-wrappy node-yallist
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 247 not upgraded.

結果

こんな感じでプロットされた。
image.png

3Dのグラフもいい感じ
image.png

おわりに

VNCでつないでも、ちゃんとグラフ表示されたし、しばらくこの環境で遊んでみようと思う。

参考

Raspberry Pi に Octave をインストール - もふもふす~ぷ
GNU Octave: Three-Dimensional Plots

0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?