0

我正在使用 Octaveio包,但在我运行脚本之前它会自行卸载。我正在使用由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在我的脚本失败后检查包被卸载时,我得到了那个错误。

4

1 回答 1

0

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

于 2017-11-13T21:57:48.833 回答