Fatal Error on Startup

4 次查看(过去 30 天)
Jorge Colon
Jorge Colon 2019-9-5
I deleted MATLAB2018 to download MATLAB2019. However, when I ran the program I got a Fatal Error on Startup, what should I do?
  1 个评论
Sachin Lodhi
Sachin Lodhi 2024-7-17
Hi Jorge,
This error indicates that MATLAB is not able to locate or read your MATLAB preferences directory. This could be due to a setting or variable on your system which is causing MATLAB to look for your preferences in a location where you do not have read access.
Typically this happens due to running a configuration script for MATLAB such as ‘config_matlab.sh’ which attempts to set your preferences directory to a non-default location where you do not have read or write access. You should start by removing the portion of the script which sets your environment variable.
This can also be resolved by creating an environment variable to specify your MATLAB preferences directory immediately before starting MATLAB. You should choose a directory where you have both read and write access. The default location is in your home folder. As an example of the command to run before starting MATLAB, see the following:
Linux
export MATLAB_PREFDIR=~/.matlab/R2023a
/usr/local/MATLAB/R2023a/bin/matlab
Mac
export MATLAB_PREFDIR=~/.matlab/R2023a
/Applications/MATLAB_R2023a.app/bin/matlab
This command sets your MATLAB preferences directory to be the default directory inside your home folder. Then, on the next line, the command is to launch MATLAB.

请先登录,再进行评论。

回答(1 个)

Neuropragmatist
Neuropragmatist 2019-9-6
You should probably contact Matlab suport:
M.

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by