How do I set the default/initial working folder for MATLAB?
    116 次查看(过去 30 天)
  
       显示 更早的评论
    
    MathWorks Support Team
    
 2012-10-11
  
    
    
    
    
    编辑: MathWorks Support Team
    
 2021-2-2
            How do I set the default/initial working folder for MATLAB?
采纳的回答
  MathWorks Support Team
    
 2020-11-18
        
      编辑:MathWorks Support Team
    
 2020-12-1
  
      You can set the initial working folder in MATLAB through the following Preference settings:
1. Open the Preferences window
2. Navigate to the General options
3. Select the option to specify a path to a folder under the Initial working folder options, and enter the desired directory
4. Press Apply and/or OK to save your changes
5. Restart MATLAB to verify the new location is set as expected.
Additional information can be found in the MATLAB documentation:
MATLAB Startup Folder
2 个评论
  Sandip Kumar
    
 2014-8-27
				
      编辑:MathWorks Support Team
    
 2021-2-2
  
			Hi Ben,
The startup file should be kept at a writable location and not inside the installation directory. There are many directories in the path of MATLAB. One such folder is <user directory>\Documents\MATLAB
Have the startup file in that location, and then inside the startup.m, you can force MATLAB to start in a desired directory as the article above says.
If you continue seeing the issue, I would recommend contacting Technical support using one of the methods mentioned here: https://www.mathworks.com/support/contact_us.html
Thanks Sandip
更多回答(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!


