我正在尝试使用八度的xlsread读取一个简单的xls文件。其csv版本如下所示:
2,4,6
8,10,12
14,16,18
20,22,24
我已在八度中运行以下命令:
# the next commands are to select the file through a gui.
# it reports a warning, but selects the filename correctly
>> pkg load io
>> fprintf('Select the training data file ... \n');
Select the training data file ...
>> filename = uigetfile({'*.xls'; '*.xlsx'}, 'File Selector');
Gtk-Message: 14:37:32.971: GtkDialog mapped without a transient parent. This is discouraged.
>> printf('file name %s\n', filename);
file name x1.xls
# now I am trying to read the xls, and I get an error:
>> [~, ~, RAW] = xlsread(filename);
Detected XLS interfaces: None.
warning: xlsopen.m: no '.xls' spreadsheet I/O support with available interfaces.
warning: xlsread: some elements in list of return values are undefined
warning: called from
xlsread at line 268 column 1
我在ubuntu-18.04 LTS上使用octave-4.2.2。此错误的原因是什么?我还需要安装其他软件包吗?我该如何解决这个问题?
答案 0 :(得分:0)
八度音阶支持xlsx,而不是xls。