Graphics error has appeared in Linux - help me understand why.
조회 수: 37 (최근 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
shuaijia heng
대략 7시간 전
How to solve this problem? I had the same problem, but I was running on a win 11 system
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!