【问题标题】:Error while loading .ods sheet into Octave将 .ods 工作表加载到 Octave 时出错
【发布时间】:2018-11-07 12:30:00
【问题描述】:

我正在尝试使用代码将电子表格中的一列整数读入 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

所以错误说“状态结构必须有字段'标识符'和'状态'”,这是什么意思?

【问题讨论】:

    标签: matlab octave openoffice-calc ods


    【解决方案1】:

    显然应该包含文件的完整路径以使其正常工作。即使文件在同一目录中,它也无法加载文件本身。

    【讨论】:

    • 我不得不说我无法重现这个。您介意指定八度版本、io 包版本、操作系统和使用的接口吗?
    • (哦,别管界面了,我从报错信息中可以看出这是OCT)
    猜你喜欢
    • 2020-08-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-06-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多