MATLAB 打开文件时是否锁定文件 (Linux)?

发布于 2024-09-25 07:19:19 字数 106 浏览 1 评论 0原文

我正在收集数据,并希望在收集数据时在 Matlab 中绘制结果。然而,当我的脚本运行时,文件似乎会被锁定。有谁知道Linux版本的Matlab在打开文件时是否有不同的行为,并使它们可由其他进程写入?

I'm collecting data and would like to plot the results in Matlab as they're being collected. However it seems like the file would be locked while my scripts are running. Does anyone know if the Linux version of Matlab acts differently when it opens files, and leaves them writeable by other processes?

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

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

发布评论

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

评论(1

乖乖公主 2024-10-02 07:19:20

我认为你需要的是内存映射。它允许其他应用程序与 MATLAB 共享相同的数据文件。

请参阅有关内存映射的 MATLAB 文档以及如何创建 MEMMAPFILE 对象。

I think what you need is Memory Mapping. It allows other applications to share the same data file with MATLAB.

See MATLAB documentation on Memory Mapping and how to create MEMMAPFILE object.

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