Octave包卸载自己

时间:2017-11-13 19:01:20

标签: import package octave undefined-function

我正在使用Octave io包,但在运行脚本之前它会自行卸载。我正在使用xlsread提供的io函数,但我一直收到以下错误:

warning: Functions for spreadsheet style I/O (.xls .xlsx .sxc .ods .dbf .wk1 etc.) are 
provided in the io package. See <http://octave.sf.net/io/>. 
Please read <http://www.octave.org/missing.html> to learn how you can contribute missing 
functionality. 
error: 'xlsread' undefined near line 25 column 23

当我输入pkg list时,包会显示,当我输入pkg load io时,它旁边会出现一个星号。我甚至编辑了octaverc以在启动时加载io。但是当我运行脚本时出现错误,当我的脚本失败后检查pkg list时,程序包被卸载了。

1 个答案:

答案 0 :(得分:0)

确保您不在脚本中的某处调用clear all(或类似命令),因为这也可能会从内存中删除已加载的库。