Я пытаюсь прочитать простой файл xls с xlsread в октаве. Его версия 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
Я использую октаву-4.2.2 на Ubuntu-18.04 LTS. В чем причина этой ошибки? Есть ли другой пакет, который мне нужно установить? Как мне решить эту проблему?