【问题标题】:Octave not finding a function (streamline) in the octave packageOctave 在 octave 包中找不到函数(流线型)
【发布时间】:2021-04-23 22:53:35
【问题描述】:

我在 Ubuntu 20.04 上使用 Octave 5.2。复制粘贴example

[x, y] = meshgrid (-1.5:0.2:2, -1:0.2:2);
u = - x / 4 - y;
v = x - y / 4;
streamline (x, y, u, v, 1.7, 1.5);

在一个 m 文件中并启动脚本,给出

warning: the 'streamline' function is not yet implemented in Octave

Please read <https://www.octave.org/missing.html> to learn how you can
contribute missing functionality.
error: 'streamline' undefined near line 4 column 1
error: called from
quiverexample at line 4 column 1

但我相信它应该出现在 5.2 版本中(精简是在 23/11/2019 上实现的,而 5.2 版本是在 31/01/2020 上构建的)。我应该从源代码构建 Octave 还是有其他方法来解决这个问题?

【问题讨论】:

    标签: ubuntu octave


    【解决方案1】:

    据我了解,streamline 从 v6 开始被添加到八度:https://www.gnu.org/software/octave/NEWS-6.1.html#alphabetical-list-of-new-functions-added-in-octave-6

    您可以简单地尝试从开发源下载相关的 m 文件。或者,从源代码下载最新的 octave 并编译它,这实际上是一个非常简单的过程。 (如果您遇到问题,请随时在这里提问)

    【讨论】:

    • 我必须更仔细地阅读新闻,谢谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-14
    • 2015-07-21
    • 1970-01-01
    • 1970-01-01
    • 2017-12-05
    • 1970-01-01
    相关资源
    最近更新 更多