Tofile Block Mat File Format

发布于 2025-01-31 07:31:23 字数 296 浏览 1 评论 0原文

我设置了MATLAB(R2019B更新9)以在版本7中保存MAT文件,因为我有一个使用scipy.io模块加载MAT文件的Python脚本,并且此Python模块不支持V7.3格式。 从MATLAB工作区变量中手动保存的垫子文件是通过格式V7创建的,但是由Simulink Tofile块创建的垫子文件似乎并不使用该格式,因为当我在此类MAT文件上运行脚本时,我遇到了下面的错误:

NotimplementedError:请使用HDF阅读器进行MATLAB v7.3文件

如何强制使用V7格式?

I have set my Matlab (R2019b Update 9) to save Mat files in version 7 because I have a Python script that uses the scipy.io module to load mat files and v7.3 format is not supported by this Python module.
Manually saved mat files from Matlab workspace variables are created in format v7, however mat files created from Simulink ToFile blocks seem not to use that format as when I run my script on such mat files I encounter the error below:

NotImplementedError: Please use HDF reader for matlab v7.3 files

How to enforce ToFile blocks to use v7 format?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北恋 2025-02-07 07:31:23

我通过重写使用H5PY Python模块读取v7.3垫子文件格式的脚本来解决此问题。

I solved this issue by rewriting a script that reads the v7.3 Mat file format using the h5py Python module.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文