Fatal Error on Startup

4 vues (au cours des 30 derniers jours)
Jorge Colon
Jorge Colon le 5 Sep 2019
Commenté : Sachin Lodhi le 17 Juil 2024
I deleted MATLAB2018 to download MATLAB2019. However, when I ran the program I got a Fatal Error on Startup, what should I do?
  1 commentaire
Sachin Lodhi
Sachin Lodhi le 17 Juil 2024
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.

Connectez-vous pour commenter.

Réponses (1)

Neuropragmatist
Neuropragmatist le 6 Sep 2019
You should probably contact Matlab suport:
M.

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by