我在Ubuntu20.04上使用了Octave 5.2。复制示例
[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版本中(流线型是在2019年11月23日上实现的,5.2版本是在31/01/2020上构建的)。我应该从源头构建Octave,还是有其他方法来解决这个问题?
发布于 2021-04-23 14:53:35
据我所知,streamline是从v6开始添加到八度的:https://www.gnu.org/software/octave/NEWS-6.1.html#alphabetical-list-of-new-functions-added-in-octave-6
您只需尝试从dev源下载相关的m文件即可。或者,从源代码下载最新的八度音阶并编译它,这实际上是一个非常简单的过程。(如果你遇到麻烦,可以在这里问一问)
https://stackoverflow.com/questions/67228031
复制相似问题