フィルターのクリア

Error "Method 'Control' is not defined for class 'matlab.gr​aphics.con​trols.inte​rnal.Contr​ol'"

20 ビュー (過去 30 日間)
Bruno Luong
Bruno Luong 2023 年 10 月 16 日
移動済み: Voss 2024 年 7 月 2 日 14:17
fig = figure('Name', 'test');
t = tiledlayout(fig, 4, 4);
The latest instruction throw this strange error on one of my PC (the other one works fine)
Method 'Control' is not defined for class 'matlab.graphics.controls.internal.Control' or is removed from MATLAB's search path.
Error in matlab.graphics.shape.internal.Button
Error in matlab.graphics.controls.internal.PostUpdatePlugin.doCacheLoad
Error in matlab.graphics.controls.internal.PostUpdatePlugin>@()matlab.graphics.controls.internal.PostUpdatePlugin.doCacheLoad(canvasParent)
Does anyone what is that about?
  3 件のコメント
Jeevankumar
Jeevankumar 2024 年 7 月 2 日 9:37
移動済み: Voss 2024 年 7 月 2 日 14:17
Error in matlab.graphics.controls.internal.PostUpdatePlugin>@()matlab.graphics.controls.internal.PostUpdatePlugin.doCacheLoad(canvasParent)
 
Steven Lord
Steven Lord 2024 年 7 月 2 日 14:10
移動済み: Voss 2024 年 7 月 2 日 14:17
That doesn't look like the full text of the error message. Please copy and paste all the text of the error message (all the text displayed in red in the Command Window), and if you receive warning messages as well please include all the text displayed in orange as well.

サインインしてコメントする。

回答 (1 件)

Ishu
Ishu 2023 年 10 月 30 日
Hi Bruno,
I understand that you are trying to use graphics system of MATLAB to plot some graphs or figures.
I tried to reproduce this error at my end but everything works fine for me. And the error states that the graphics class is removed from the "Matlab's search path", so by mistake you may have removed the "Control class" from the path.
You can try to import this class by running the below command in command prompt:
import matlab.ui.control.*
After runnig this command you will be able to access the "Control class" of MATLAB.
Hope it helps.
  1 件のコメント
Bruno Luong
Bruno Luong 2023 年 10 月 30 日
Thanks. Now you remind me but it seems thhe issue is resoved on its own, possibly with Updates.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by