问题描述
我在 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);
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 还是有其他方法来解决这个问题?
解决方法
据我所知,从 v6 开始,streamline
被添加到八度:https://www.gnu.org/software/octave/NEWS-6.1.html#alphabetical-list-of-new-functions-added-in-octave-6
您可以简单地尝试从开发源下载相关的 m 文件。或者,从源下载最新的八度音程并编译它,这实际上是一个非常简单的过程。 (如果您遇到问题,请随时在这里提问)