[英]how to fix xlsread error on octave on ubuntu
我正在嘗試使用八度的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。 此錯誤的原因是什么? 我還需要安裝其他軟件包嗎? 我該如何解決這個問題?
octave支持xlsx,不支持xls。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.