Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Octave 如何修复ubuntu八度音阶上的xlsread错误_Octave - Fatal编程技术网

Octave 如何修复ubuntu八度音阶上的xlsread错误

Octave 如何修复ubuntu八度音阶上的xlsread错误,octave,Octave,我正在尝试读取一个简单的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('Sel

我正在尝试读取一个简单的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

我正在ubuntu-18.04 LTS上使用octave-4.2.2。这个错误的原因是什么?是否有其他软件包需要安装?如何解决此问题?

倍频程支持xlsx,而不是xls。

您能否提供有关如何解决此问题的更多详细信息?然后我会接受你的答案,如果它对我有效。只需手动转换XLS文件。我用LibreOffice做的。