我正在尝试使用代码将电子表格中的一列整数读取为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’",这意味着什么?
显然,应该包含文件的完整路径才能使其工作。即使文件在同一目录中,它也无法加载文件本身。