How do I reset the "UntitledN" editor counter?

4 views (last 30 days)
When I am using the editor and hit ctrl+n, a new file tab opens up with a default name UntitledN, where N is the number of times I have done this plus 1. Now I am up to 34 in the current folder. Note that I do not have any files that are actually saved as UntitledN for any N.
How can I reset this counter?
Just curious.

Accepted Answer

Jan
Jan on 28 Mar 2011
Is this your puzzler?
system('matlab &'); exit
Or let's find out the type of the counter by provoking an overflow:
Editor = com.mathworks.mlservices.MLEditorServices;
for i = 1:65536
Editor.newDocument('');
Editor.closeAll;
end
EDITED: At least not an 8 bit counter. Waiting for the 16 bit overflow will last too long on my computer...
  1 Comment
Matt Fig
Matt Fig on 28 Mar 2011
Jan,
It's not Wednesday!
I guess I just needed to laugh at myself this morning. Who knew it was so simple to just restart MATLAB? I guess that is what I get for leaving MATLAB constantly running for weeks on end...

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!