在Gnu Octave中调用drawShape时出错

时间:2016-02-14 05:15:53

标签: ubuntu octave

我刚刚安装了octave-geometry包,并尝试调用:

drawShape('rect', [20 20 40 10 pi/3]);

结果是:

error: 'rectAsPolygon' undefined near line 78 column 21
error: called from
    drawShape at line 78 column 19

我正在运行Linux Mint 17(Qiana)。最初,我通过apt-get安装,它使用octave 3.8,并得到了类似的结果。所以,我安装了八度版本4.0,采取以下路线:

sudo apt-add-repository ppa:octave/stable

GUI安装好了,但我仍然无法使用几何包。

>> pkg load geometry;
>> ver
----------------------------------------------------------------------
GNU Octave Version: 4.0.0
GNU Octave License: GNU General Public License
Operating System: Linux 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64
----------------------------------------------------------------------
Package Name  | Version | Installation directory
--------------+---------+-----------------------
     general  |   2.0.0 | /usr/share/octave/packages/general-2.0.0
    geometry *|   2.1.0 | /home/jack/octave/geometry-2.1.0

有什么想法吗?非常感谢。

1 个答案:

答案 0 :(得分:2)