Where to install libraries
86 views (last 30 days)
Show older comments
I downloaded some files from File Exchange to my Mac. When I tried to open and run a .slx file, I got some errors. Somewhere I read that the libraries should be installed on some kind of Matlab path. Can you tell me where it is located? I only found the MATLAB_R2016b icon on the Application folder. Cannot find a Matlab folder.
0 Comments
Answers (2)
Walter Roberson
on 2 Mar 2017
If you are using a Mac (locations are different for other operating systems):
Some files are put into your ~/Documents/MATLAB directory and licenses and preferences are put into your ~/.matlab directory. Starting from R2016b, licenses and preferences are put into your ~/Library/Application\ Support/MathWorks directory instead of under ~/.matlab
If you download using the Add-On Explorer then everything necessary should be down-loaded for you and automatically put onto your MATLAB path; it is the ~/Documents/MATLAB/Add-Ons and ~/Documents/MATLAB/SupportPackages directory that would be used for that.
If you manually download from the File Exchange instead of using the Add-On Explorer, then you can put the download files anywhere convenient for you. You can then invoke the MATLAB
pathtool
and use that to add those directories to your MATLAB path.
Note: my recommendation when you use pathtool is to add such packages to the bottom of the list, so that if what you download accidentally has the same routine name as one of the built-in MATLAB routines, then existing routines will not suddenly stop working.
2 Comments
Walter Roberson
on 3 Mar 2017
Okay, it turns out that what you have to do for that demo is go to the MATLAB command prompt and execute
startup_Scissor_Lift
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!