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

47 次查看(过去 30 天)
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 个评论
dormant
dormant 2024-11-15,15:09
Thanks.
My startup.m file doesn't have a call to readseisfile2.
shuaijia heng
shuaijia heng 2024-11-21,9:56
How to solve this problem? I had the same problem, but I was running on a win 11 system

请先登录,再进行评论。

回答(0 个)

类别

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

标签

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by