前言
俗话说,“工欲善其事必先利其器”。想要高效地使用Octave,做好前期工作是相当有必要的。有的工具包安装后并不能被Octave自动使用,需要先加载才能使用。那么问题来了,要怎样才能让Octave自动识别加载相应的工具包呢?
问题
下面就是Symbolic工具包为例来向大家介绍如何实现自动加载包:
未加载Symbolic包之前,在命令窗口中执行:syms x
得到如下信息:
>> syms x
warning: the 'syms' function belongs to the symbolic package from Octave Forge
which you have installed but not loaded. To load the package, run 'pkg
load symbolic' from the Octave prompt.
Please read <https://www.octave.org/missing.html> to learn how you can
contribute missing functionality.
error: 'syms' undefined near line 1 column 1
从错误提示信息