How can the finish.m MATLAB script be used to remove preferences when MATLAB terminates?
1 回表示 (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2016 年 8 月 16 日
編集済み: MathWorks Support Team
2021 年 3 月 4 日
How can I remove the preferences folder from MATLAB every time when it quits? The saved preferences sometimes cause sporadic startup crashes on Fedora 23 Linux. Removing the saved preferences from the .matlab folder from the home directory helps in preventing the crashes.
採用された回答
MathWorks Support Team
2021 年 3 月 4 日
編集済み: MathWorks Support Team
2021 年 3 月 4 日
You can create a finish.m script to perform any final tasks before MATLAB quits. It can be used to remove the preferences folder. when MATLAB quits. Refer to the following MathWorks documentation for more information on the finish.m script.
The "prefdir" function gives the location of the folder containing preferences, history and layout files.After this the "rmdir" function can be used to remove the directory specified as the input argument to this function. Refer to the following MathWorks documentation for more information on "prefdir" and "rmdir" functions.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!