- Install the toolbox normally with Add-Ons Manager (this will require you to have admin privileges).
- Copy the toolbox directory from “/usr/local/MATLAB/R2021a/toolbox” to your desired location in user space.
- In your “startup.m” file, add this new path as shown:
Linux: Paths missing after toolbox installation
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Let's say you want to use 'dtw' algorithm, but you don't have Signal Processing Toolbox.
>> dtw
'dtw' requires Signal Processing Toolbox.
Clicking on the link, opens Add-Ons manager, but the installation usually fails since the user running matlab usually doesn't have permissions to write to /usr/local/, where matlab is usually installed). Usin sudo won't help, since matlab is usually configured to be only used with a specific user.
To install a toolbox in Linux, you have to follow a woraround: https://www.mathworks.com/matlabcentral/answers/717063-linux-installing-new-toolboxes-on-an-existing-installation
After this, the plugin is instlaled only partiually. The files are placed to the correct location, but the paths are not configured. Upon Matlab restart, if I try to run a scrip from the new toolbox, I get a different error:
>> dtw
Unrecognized function or variable 'dtw'.
Is there any better workaround, than copying the paths from someone that already has the toolbox installed to my pathdef.m?
Also, is there any way to install toolbox to userspace, avoiding the need to grant user writing permission to /usr/local?
0 Kommentare
Antworten (1)
Abhiram
am 11 Jun. 2025
By default, licensed toolboxes are installed into the “matlabroot” directory tree. To install toolboxes fully to you user space, follow the given steps:
addpath(genpath(“your_user_directory”));
savepath;
This approach enables us to have toolboxes on user space directories but will require root access from the admin at the time of installation.
For more information on adding directories to MATLAB search path at startup, refer to the given documentation page:
0 Kommentare
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!