我正在尝试使用代码将电子表格中的整数列读入Octave
A = odsread('Data.ods', 'Sheet1', 'A1:A946');
但是它失败了,并且我收到一条警告和错误消息,如:
> unzip: cannot find or open Data.ods, Data.ods.zip or Data.ods.ZIP. file Data.ods couldn't be unpacked. Is it the proper file format? warning: UnZip failed with error 9 Output: error: warning: STATE structure must have fields 'identifier' and 'state' error: called from __OCT_spsh_open__ at line 72 column 7 odsopen at line 267 column 30 odsread at line 179 column 7
因此错误显示“ STATE结构必须具有字段'identifier'和'state'”,这是什么意思?
答案 0 :(得分:2)
显然,应包括文件的完整路径以使其起作用。即使文件位于同一目录中,它也无法加载文件本身。