我正在使用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
时,程序包被卸载了。
答案 0 :(得分:0)
确保您不在脚本中的某处调用clear all
(或类似命令),因为这也可能会从内存中删除已加载的库。