Cannot plot anything in Matlab running in Ubuntu 22.04.01
21 ビュー (過去 30 日間)
古いコメントを表示
Antonios Asiminas
2023 年 11 月 16 日
移動済み: Walter Roberson
2023 年 11 月 21 日
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!