【问题标题】:Error calling drawShape in Gnu Octave在 Gnu Octave 中调用 drawShape 时出错
【发布时间】:2016-02-14 05:15:52
【问题描述】:

我刚刚安装了 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)。最初,我通过使用 octave 3.8 的 apt-get 进行安装,得到了类似的结果。所以,我安装了 octave 4.0 版本,采取以下路线:

sudo apt-add-repository ppa:octave/stable

GUI 安装好了,但是还是不能使用geometry包。

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

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

【问题讨论】:

标签: ubuntu octave


【解决方案1】:

【讨论】:

  • 好的,听起来不错,谢谢。
    很抱歉回复晚了,但自从我问这个问题以来我一直很忙。
猜你喜欢
  • 2019-10-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-09-28
相关资源
最近更新 更多