Where is startup.m supposed to be?

后端 未结 6 2021
旧时难觅i
旧时难觅i 2021-01-31 03:13

I\'ve been chasing the answer to this question in the MATLAB documentation for a long time...

For example, at the bottom of

http://www.mathworks.com/help/matlab/

6条回答
  •  余生分开走
    2021-01-31 03:43

    As read in http://fr.mathworks.com/help/matlab/matlab_env/matlab-startup-folder.html#buj_13n :

    Changing the Startup Folder

    Starting in R2014b, you can change the startup folder using the General Preferences panel. On the Home tab, in the Environment section, click Preferences. Select MATLAB > General. Choose an option for the Initial working folder.

    By default, the initial working folder is set to Location based on MATLAB startup rules.

    I wish it did not involve the graphical desktop interface, though. By looking closely in the file matlab.setting, which under Linux should lie in ~/.matlab//, you can find the lines

    
        
            ]]>
        
    
    

    where you can certainly specify manually the startup directory.

提交回复
热议问题