Help talk:Matlab
Jump to navigation
Jump to search
check for toolboxes[edit]
inside matlab: ver
from license server: lmstat -a or "licenses" on newton
Dependencies[edit]
Ubuntu 20.04:
apt install libgtk2.0-0 libgbm1
- https://github.com/mathworks-ref-arch/container-images/tree/main/matlab-deps/r2023b
- 2023b/CentOS7: glibc-langpack-en glibc-locale-source libsndfile (didn't fix it)
matlab java error[edit]
Undefined function 'usejava' for input arguments of type 'char'.
Caused by corrupted / empty / missing / wrong pathdef.m file, cased by aborted (99%) or corrupted install.
- Having performed the "restoredefaultpath;matlabrc" fix mentioned above I then navigated to the C:\Program Files\MATLAB\R2011b\toolbox\local folder and typed "savepath pathdef.m". The system now appears to be working normally.
ref: http://www.mathworks.com/matlabcentral/answers/27747-error-loading-path
install notes[edit]
cifs-utils mount.cifs
mount options vers=1.0
ubuntu silent prerequites[edit]
- libxrender1 libxtst6 (apt-get install apwal)
It may also help to apt install matlab-support
clear cache[edit]
(type very carefully)
rm -r ~/.mcrCache*
untested[edit]
OMP_NUM_THREADS
This fixes a warning about canberra
export GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-2.0
This disables the nvidia driver for MESA (untested, didn't seem to help?)
export MESA_LOADER_DRIVER_OVERRIDE=i965
Trivial code to test graphics
im = rand(20,20) imagesc(im)