Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
RHLUG Wiki
Search
Search
Appearance
Log in
Personal tools
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Installing MATLAB
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Install MATLAB: == === Install with MATLAB package manager === Replace `/usr/local/MATLAB/` with whatever you want, it may make more sense to have it in your home directory. It needs to run with permission to edit files for authorization, if it is not owned by you run: <syntaxhighlight lang="sh">chmod -R 777 /usr/local/MATLAB/</syntaxhighlight> ==== Install your preferred release ==== you can make a new folder for each and have multiple or just use a single folder and overwrite your previous install <syntaxhighlight lang="sh">mpm install --release=R2025b --destination=/usr/local/MATLAB/R2025b MATLAB Simulink Control_System_Toolbox</syntaxhighlight> ==== Authenticate ==== Include the lib after ':' if you needed an older version of a library like gnutls, you may also have to run this with bash as it specifies /bin/sh while using bashisms.<syntaxhighlight lang="sh"> LD_LIBRARY_PATH='/usr/lib/dri/:/usr/local/MATLAB/R2025b/lib/' /usr/local/MATLAB/R2025b/bin/glnxa64/MathWorksProductAuthorizer.sh </syntaxhighlight> === General install tips === ==== gnutls breaking changes ==== If you are running a bleeding edge distro you will have to downgrade gnutls to 3.8.9, can be found here for arch: https://archive.archlinux.org/packages/g/gnutls/gnutls-3.8.9-1-x86_64.pkg.tar.zst Simply unzip all the *.so.[number] files into some sort of library directory specifically for MATLAB to preload it when launching MATLAB, something like `/usr/local/MATLAB/R2025b/lib` will do. Then in your .desktop file prepend <syntaxhighlight lang="sh">LD_LIBRARY_PATH=/usr/lib/dri/:/usr/local/MATLAB/R2025b/lib/</syntaxhighlight> ==== .desktop file tips ==== Copy the desktop file to your personal desktop file area to customize how it launches <syntaxhighlight lang="sh">sudo cp /usr/share/applications/matlab.desktop ~/.local/share/applications/matlab.desktop && sudo chown [user] [user] ~/.local/share/applications/matlab.desktop</syntaxhighlight> Change the exec line to keep existing preloads, directly call the file, and have the startup folder preference be respected: <syntaxhighlight lang="sh" line="1">Exec=env 'LD_PRELOAD=/usr/lib/libfreetype.so:/usr/lib/libstdc++.so:/usr/lib/libfontconfig.so' LD_LIBRARY_PATH=/usr/lib/dri/ /usr/local/MATLAB/R2025b/bin/matlab -desktop -useStartupFolderPref</syntaxhighlight> == UI size == In some 2025 release the ui zoom was disabled, you can set it in the MATLAB command window with: <syntaxhighlight lang="matlab">settings().matlab.desktop.Zoom.PersonalValue=150</syntaxhighlight> if you want to tab through the possible settings you can change run: <syntaxhighlight lang="matlab"> s=settings s.[ctrl+space/tab]</syntaxhighlight>
Summary:
Please note that all contributions to RHLUG Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
RHLUG Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)