How do I stop tabs from opening when I create a new file?
4 views (last 30 days)
Show older comments
In my script, I create a lot of file (hundreds). At the end of the script, each file is opened in a tab in the editor. Is it possible to stop this from happening?
Thanks.
2 Comments
Accepted Answer
Jan
on 10 Jan 2017
Edited: Jan
on 10 Jan 2017
The files are opened in the line:
edit(newfile)
If you do not want them to be opened, simply omit this line.
If tis was your problem, you can find the solution by using the debugger and stepping through your code line by line until you find the command, which produces the unwanted effects.
More Answers (1)
Sean de Wolski
on 10 Jan 2017
Using the fopen/fprintf/fclose workflow I don't know why they'd be open. Can you show us what you have?
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!