Octave的安装
Octave 3.8.0下载地址
Octave代码
1==2 是否相等
1~=2 不等于(不同于一般的编程语言用!表示)
返回的结果用0(假) 1(真) 表示
使用PS1('>> ')可以隐藏命令行提示
代码用分号结束不会输出结果,不使用分号结尾直接输出
创建矩阵






在使用hist(w)的时候遇到一个错误
gnuplot> set terminal aqua enhanced title "Figure 1" font "*,6" dashlength 1^
line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list
解决方法
在Octave命令行输入一下代码
setenv('GNUTERM','qt')
ps:你需要先安装gnuplot
网友评论