Why do I receive a Java error when opening a GUIDE figure?

조회 수: 7 (최근 30일)
I am trying to create a new GUIDE figure. When I run "guide" in the command window and select "GUI with Uicontrols" from the templates, I receive the following error message in the command window:
java.lang.ClassCastException: [D cannot be cast to [Ljava.lang.String;
at com.mathworks.toolbox.matlab.guide.LayoutEditor.completed(LayoutEditor.java:2244)
at com.mathworks.toolbox.matlab.guide.LayoutEditor$ReadFigureCompleted.completed(LayoutEditor.java:3089)
at com.mathworks.toolbox.matlab.guide.utils.LayoutWorker.runOnMatlabThread(LayoutWorker.java:55)
at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79)
at com.mathworks.jmi.MatlabWorker.start(MatlabWorker.java:248)
at com.mathworks.toolbox.matlab.guide.utils.LayoutWorker.start(LayoutWorker.java:70)
at com.mathworks.toolbox.matlab.guide.utils.LayoutWorker.fevalConsoleOutput(LayoutWorker.java:41)
at com.mathworks.toolbox.matlab.guide.LayoutLooper.readFigure(LayoutLooper.java:713)
at com.mathworks.toolbox.matlab.guide.LayoutEditor.openLayoutEditor(LayoutEditor.java:2026)
at com.mathworks.toolbox.matlab.guide.LayoutEditor.openLayoutEditor(LayoutEditor.java:1989)
Additionally, I receive the following pop-up error starting with "Error using flip Too many input arguments":
How do I fix this issue?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2021년 1월 20일
This error is occurring because the builtin MATLAB function "flip" is being shadowed by a user-defined function on the search path. To resolve the issue, first locate this user-defined function file by running "which flip" in the command window. Once the function file is located, rename the function / file to a different name that does not shadow a MATLAB builtin function. After this, the issue should be fixed.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by