marderlab / computers

Issue tracker for computers in the marderlab
3 stars 0 forks source link

How to install MATLAB on lab computers with mulitple users #28

Open sg-s opened 3 years ago

sg-s commented 3 years ago
  1. Install MATLAB only once, in the default install location
  2. Set up shortcuts to point to MATLAB
  3. Configure pathdef as follows:

(communication from Mathworks)

The location of the the pathdef.m file can be changed for each user; it does not need to be stored in the MATLAB installation directory.

A good place to store an individual user's pathdef file is user's MATLAB working directory. The default location for this is ~/Documents/MATLAB/. The userpath command returns actual value.

To store a copy of the pathdef.m for that user

  1. Run the command

savepath(fullfile(userpath,'pathdef.m')) This saves a copy of pathdef to the userpath.

  1. Then use the Set Path button in MATLAB and ensure that user's userpath is included at the top of the path list. Thus MATLAB will pick up the customized pathdef.m on restart.

Each user will have to complete these steps one time.

cosmojg commented 3 years ago

I'm a little confused. Would you like someone to take action on this or are you sharing it here as a reference for future installations?

sg-s commented 3 years ago

i guess as reference for future, but if you wanted to do this pro-actively, that would work too...