.dat 文件,使用 Matlab 创建时未打开

发布于 2024-09-16 14:22:41 字数 192 浏览 4 评论 0原文

我正在 Matlab 中创建一个包含标题和数据的 .dat 文件,但是当我尝试从保存该文件的文件夹中打开它时,我收到错误消息 “文件正在被另一个应用程序使用,无法访问”< /代码>。即使 Matlab 关闭,也会出现此错误。我只能通过 Matlab 的当前目录窗口右键单击该文件来将其作为文本打开。为什么会发生这种情况以及如何解决?

I am creating a .dat file with headers and data in Matlab, however when I try opening it from the folder where it is saved then I get the error that says 'file in use by another application and cannot be accessed'. This error occurs even when Matlab is closed. I can only open it as a text by right clicking on the file through the Matlab's current directory window. Why is this happening and how to resolve it?

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

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

发布评论

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

评论(2

云裳 2024-09-23 14:22:41

您可以尝试:

fclose('all')

关闭所有打开的文件。

You could try:

fclose('all')

to close all open files.

以为你会在 2024-09-23 14:22:41

这是不应该发生的,事实上,当我在我的机器(OS X,R2010a)上尝试你的代码时,也不会发生这种情况。换句话说,我强烈怀疑Matlab代码有什么问题。

尝试重新启动 Windows,然后新创建的、名称不同的文件的问题就会消失。

This is not supposed to happen, and, in fact, doesn't happen when I try your code on my machine (OS X, R2010a). In other words, I strongly doubt that there is any problem with the Matlab code.

Try restarting Windows, then the problem should go away for newly created, differently named files.

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