Cannot plot anything in Matlab running in Ubuntu 22.04.01
조회 수: 21 (최근 30일)
이전 댓글 표시
Hi all,
I have now tried several things but nothing is working for me.
I cannot plot even the simplest things in Matlab 2023a on Ubuntu 22.04
Every other code I tried works fine and my GPU is being used fine, so I think it is unlikely that this is a problem with my graphics drivers.
Here is an example:
>> plot(rand(1,100))
Output argument "val" (and possibly others) not assigned a value in the execution with "get" function.
Error in matlab.graphics.shape.internal.ScribeStackManager/findLayer
Error in matlab.graphics.shape.internal.ScribeStackManager/getLayer
Error in newplot (line 83)
ax = gca(fig);
Error in matlab.graphics.internal.newplotwrapper (line 11)
axReturn = newplot(varargin{:});
Output argument "val" (and possibly others) not assigned a value in the execution with "get" function.
Error in matlab.graphics.shape.internal.ScribeStackManager/findLayer
Error in matlab.graphics.shape.internal.ScribeStackManager/getLayer
Error in matlab.graphics.shape.internal.ScribeStackManager/getDefaultCamera
Error in matlab.graphics.annotation.internal.getDefaultCamera
Error in matlab.graphics.controls.internal.PostUpdatePlugin.doCacheLoad
Error in matlab.graphics.controls.internal.PostUpdatePlugin>@()matlab.graphics.controls.internal.PostUpdatePlugin.doCacheLoad(canvasParent)
Output argument "val" (and possibly others) not assigned a value in the execution with "get" function.
Error in gcbf (line 17)
[~, fig] = gcbo;
Error in closereq (line 12)
if isempty(gcbf)
So far I have tried solutions suggested in various places but nothing has worked.
Here is some more info:
>> opengl info
Version: '4.6.0 NVIDIA 535.129.03'
Vendor: 'NVIDIA Corporation'
Renderer: 'NVIDIA GeForce RTX 4090/PCIe/SSE2'
MaxTextureSize: 32768
Visual: 'Visual 0x27, (RGBA 32 bits (8 8 8 8), Z depth 16 bits, Hardware acceleration, Double buffer, Antialias 8 samples)'
Software: 'false'
HardwareSupportLevel: 'full'
SupportsGraphicsSmoothing: 1
SupportsDepthPeelTransparency: 1
SupportsAlignVertexCenters: 1
Extensions: {401×1 cell}
MaxFrameBufferSize: 32768
>> version -java
ans =
'Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode'
댓글 수: 2
채택된 답변
Walter Roberson
2023년 11월 20일
이동: Walter Roberson
2023년 11월 21일
As an experiment, try
restoredefaultpath; rehash toolboxcache
and then try plotting.
If it works, then some function in one of the non-Mathworks folders on your path is conflicting with MATLAB. In particular the error message hint you might have a stray get.m file that is not supplied by Mathworks.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!