How to change preferences for edit command
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
Stephen23
2017-1-17
编辑:Stephen23
2017-1-17
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.
0 个评论
更多回答(2 个)
Steven Lord
2017-1-17
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scope Variables and Generate Names 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!