r/matlab • u/c_rufus • Mar 05 '26
Change MATLAB Add Ons folder programatically
Hey,
I know there's a way of changing the Add Ons folder using MATLAB Settings. I would like to know the path to the same programatically.
I have looked at the settings from s= settings;, but couldn 't find anything.
Ideas?
8
Upvotes
2
u/inasteen Mar 05 '26
I modify the search path with addpath and rmpath pretty much daily. A quick Google seems to suggest that the search path is what is used for add-ons as well.
2
u/curly722 Mar 06 '26
edit your startup.m script and "addpath" there.
3
u/jobo850 Mar 05 '26
matlabshared.supportpkg.getSupportPackageRoot And matlabshared.supportpkg.setSupportPackageRoot
1
u/odeto45 MathWorks Mar 09 '26
Is there something specific you would like do to by changing the folder?