How do I find Matlab after its installed on Linux?
192 views (last 30 days)
Show older comments
I finished intalling Matlab through the linux terminal. I know the directory name is /usr/local/MATLAB/R2022b I just dont get how to find it. I used 'cd /usr/local/MATLAB/R2022b' which brings me into the directory, but I dont know where to go from there. Do I try to open a file under the directory? If so what file? I just need to know how to open Matlab after installing it. From what I have understood so far, I have to open it through the terminal. Please help thank you.
0 Comments
Answers (1)
Steven Lord
on 30 Oct 2022
5 Comments
Steven Lord
on 7 Jun 2024
If you don't have a folder in which you installed MATLAB, you can't run MATLAB on your local machine because it's not installed. You'd need to install it first (or use MATLAB Online to avoid having to install it locally.)
In the original question where the poster wrote "I know the directory name is /usr/local/MATLAB/R2022b", matlabroot is the directory /usr/local/MATLAB/R2022b. So to start MATLAB in that scenario, you'd run the file in this location:
/usr/local/MATLAB/R2022b/bin/matlab
Of course, if you're using a different release the R2022b part of that directory path will be different. So for release R2024a the file would probably be:
/usr/local/MATLAB/R2024a/bin/matlab
Of course, if you told the Installer to create symbolic links, you should be able to just type
matlab
Ah, I see your question/confusion. You tried running matlabroot from the system prompt and it wasn't listed. Yeah, that only works if you've already started MATLAB and if you're trying to find matlabroot to start MATLAB it's not going to be much help. I'll note that to the documentation staff.
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!