Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"diary off", still can't delete Matlab diary file

267 views
Skip to first unread message

paul.d...@gmail.com

unread,
Jun 10, 2016, 1:13:32 PM6/10/16
to
I've got my diary being echoed to a text file. After I issue "diary off", I am still unable to delete the file. I have to exit Matlab before I can delete. Just wondering if this is a known problem, maybe with a solution?

Steven Lord

unread,
Jun 10, 2016, 1:20:54 PM6/10/16
to


<paul.d...@gmail.com> wrote in message
news:c70a3159-0fe6-4de9...@googlegroups.com...
> I've got my diary being echoed to a text file. After I issue "diary off",
> I am still unable to delete the file.

Are you deleting the file using the DELETE function in MATLAB, your OS's
commands, or some sort of UI like Windows Explorer?

What happens when you try to delete it? If you receive some sort of error,
what is the text of that error?

Does you still have the file open in the MATLAB Editor or some other
application?

> I have to exit Matlab before I can delete. Just wondering if this is a
> known problem, maybe with a solution?

--
Steve Lord
sl...@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

paul.d...@gmail.com

unread,
Jun 10, 2016, 1:38:43 PM6/10/16
to
On Friday, June 10, 2016 at 1:20:54 PM UTC-4, Steven Lord wrote:
><paul.domaskis_AT_gmail.com> wrote:
>> I've got my diary being echoed to a text file. After I issue
>> "diary off", I am still unable to delete the file.
>
> Are you deleting the file using the DELETE function in MATLAB, your
> OS's commands, or some sort of UI like Windows Explorer?

I use Cygwin's bash and issue:

'rm' -f myDiaryFile.txt

> What happens when you try to delete it? If you receive some sort of
> error, what is the text of that error?

> Does you still have the file open in the MATLAB Editor or some other
> application?

No, the file is not open in any sense, to my knowledge.
Unfortunately, it's hard to make the error happen at will, though it
does happen often. It's just not happening at the moment, so I regret
that I can't respond to the questions above. However, the error
message goes something like "resource busy". It's probably Cygin's
bash relaying complaints from Windows.
0 new messages