Where is startup.m supposed to be?

后端 未结 6 2146
旧时难觅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:33

    This is meant as a pointer for Lx users (as confused as I was at first...). I work on Debian based boxes, but the same should apply to the CentOS system lineup, etc.

    • Check that after install you do have the directory/ies: ~/.matlab/
      Note that you may have several releases there as is my case. matlab actually permits that.
    • Create ~/.matlab/startup.m
      Incidentally I also created my directory Workspace there. That's completely optional
    • In your Matlab window's Home tab find the menu iten/icon Set Path, click on it and add a "matlab search path" with the button Add folder top left. Add ~/.matlab as a new search path. Change should take effect immediately.
    • Restart Matlab to check that the content of ~/.matlab/startup.m is correctly taken into account at launch time.

    I hate GUIs... I thought you might want to know ;-) HTH.

提交回复
热议问题