Matlab search route for all Linux users

How can I add a matlab search path for all users on a Linux system?

I control a Linux computer that several people use. I want to place some Matlab * .m files along a path (e.g. / usr / local / matlab / our_matlab_scripts /), each of which has read permission. I also want to add this path to the Matlab search path for all users so that they can immediately start using Matlab files.

As a single user, I found out that I can add the search path with the Matlab command 'addpath' or from the Matlab file menu, for example. However, until now I could not find a way to do this as an administrator for all current and future users at once.

I would appreciate it if you can kindly teach me.

+4
source share
1 answer

If you look at this topic:

http://www.mathworks.com/matlabcentral/newsreader/view_thread/112560

You will find that there is a matlabrc.m file that runs at startup. He is looking for a startup.m file that users may have. One could add addpath commands to this file, and it should work for all users.

+4
source

Source: https://habr.com/ru/post/1391875/


All Articles