How to change preferences for edit command

2 views (last 30 days)
Hi everyone, I seem to have run into a trivial problem that I cannot do on my own as of yet.
When executing the "edit" command, I previously selected Matlab to never prompt me again, which is fine except I accidentally set it to never create the script with my inputted file name. Now all that comes up is:
edit Homework1111
Error using edit (line 65)
Neither 'Homework1111' nor 'Homework1111.m' could be found.
How can I fix it so I can have it not prompt AND create the script with my inputted name?

Accepted Answer

Stephen23 on 17 Jan 2017
Edited: Stephen23 on 17 Jan 2017
After edit or CRTL+D you click "yes" instead of "no":
If at some point in the past you have checked the box "Do not show this prompt again", then the moral of the story is always remember what you yourself have chosen.
This page explains how to reset that checked box:
Basically you need to check this box in the preferences:
And then you can select the default behavior to create a new file, if you so wish.

More Answers (2)

Steven Lord
Steven Lord on 17 Jan 2017
In the Confirmation Dialogs section of the General preferences for MATLAB, the preference "Prompt when editing files that do not exist" will be unchecked. Check it and the dialog will show up again. Then try editing a file that doesn't exist, select the checkbox to not show the prompt again, and click Yes instead of No.

Tyler Warner
Tyler Warner on 19 Jan 2017
Thank you for the assistance. I have gained a better understanding of the general interface.


Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!