How can I get matlab back to the state it started in

2 次查看(过去 30 天)
I am using my installation of matlab to generate guides and videos for our students using the software so each time, I need to be able to get matlab back to the state it starts in for the students i.e. as though it was making a fresh start with no variables, no functions, routines or scripts and the windows all set back to their original state.
Is there any way to do this other than reinstalling the software?

采纳的回答

Walter Roberson
Walter Roberson 2023-1-23
  • ensure that there are no files in the userpath (or at least no .m .mlx .mdl .slx .p .mex* .mlapp .project files)
  • delete prefdir (it will be recreated next time) -- do this while MATLAB is not running
  • be careful, something might have been saved to pathdef.m in toolbox/local/pathdef.m inside the installation directory.
  • restoredefaultpath and then savepath

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

标签

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by