Skip to content

Install Octave via Homebrew

changwu edited this page May 13, 2016 · 4 revisions

安裝

$ brew cask install aquaterm
$ brew tap homebrew/science
$ brew reinstall gnuplot --with-aquaterm
$ gnuplot # make sure it says "terminal set to aqua"
$ brew install lua51 # yes, you also need this old version of Lua
$ brew install octave

Edit ~/.octaverc

# Requires XQuartz
setenv('GNUTERM','x11')   # install gnuplot --with-x11

PS1('>> ')

測試

a = [2;3;4;5;6;3;4;32;3;2;1;4;5;6;7;]
b = [12;23;44;55;66;12;44;9;5;27;111;23;66;89;88;]
plot ([a, b])

主要是為了修正繪圖時的問題

Clone this wiki locally