Graphics error has appeared in Linux - help me understand why.

37 visualizaciones (últimos 30 días)
dormant
dormant el 14 de Nov. de 2024 a las 17:38
Comentada: shuaijia heng hace alrededor de 8 horas
I've been using MATLAB in Linux for plotting data for years, and for about 4 months with my current hardware/software setup
I'm now getting the following graphics error. It happens on the first run of a plotting script after I've started the MATLAB GUI, but not on any subsequent runs. It also happens when I run a plotting scipt from the Linux command line. The scripts run fine and generate plots.
disregard stty: warning message above
count lines, count words, count characters, filename =
wc: US: No such file or directory
Warning: Initializing MATLAB Graphics failed.
This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was:
MATLAB:UndefinedFunction
Undefined function 'readseisfile2' for input arguments of type 'char'.
> In hgrc (line 184)
In matlab.graphics.internal.initialize (line 15)
The only thing I recognise in the error message is readseisfile2. That sounds like a name I'd use for a function, but no such function exists on my system.
The problem started today when I was trying to make changes to my MATLAB startup. I've always had a problem saving my Path, and had to Set Path every time I started the MATLAB GUI. I needed to sort the Path problem so I could run scripts as batch jobs, either from the command line or as cronjobs. I noticed that userpath was empty, so I set that to the directory where I had created a startup.m file. That seemd to solve the Path problem.
I'm not certain that the graphics error appeared at exactly the same time as I fixed the Path.
Can anyone suggest what I could look at to try and troubleshoot this problem? My instinct is that I've messed something up and should reinstall MATLAB. Or should I contact MATLAB support?
  3 comentarios
dormant
dormant el 15 de Nov. de 2024 a las 15:09
Thanks.
My startup.m file doesn't have a call to readseisfile2.
shuaijia heng
shuaijia heng hace alrededor de 8 horas
How to solve this problem? I had the same problem, but I was running on a win 11 system

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by