App Designer Expected Input to be one of these types:

7 views (last 30 days)
Larry McDermott
Larry McDermott on 8 Dec 2020
Answered: Nitin Kapgate on 14 Dec 2020
I had several apps built in app designer working fine.
Now when I load any of them I get "App Designer" Expected input to be one of these types: appdesigner.internal.codegeneration.model.codemodel Instead its type was struct.
OK does nothing, no direction to help.
I fought it and gave up and recreated an app and it's fine.
Now I tried to edit a different app and get this, so seems to be hitting all my apps.
How can I resolve this and avoid this recurring?
Thanks for any feedback!
>> ver
MATLAB Version: (R2018b) Update 7
MATLAB License Number: 975805
Operating System: Microsoft Windows 10 Enterprise Version 10.0 (Build 16299)
Java Version: Java 1.8.0_152-b16 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Version 9.5 (R2018b)
Simulink Version 9.2 (R2018b)
Curve Fitting Toolbox Version 3.5.8 (R2018b)
Database Toolbox Version 9.0 (R2018b)
Global Optimization Toolbox Version 4.0 (R2018b)
Image Processing Toolbox Version 10.3 (R2018b)
MATLAB Compiler Version 7.0 (R2018b)
MATLAB Compiler SDK Version 6.6 (R2018b)
Optimization Toolbox Version 8.2 (R2018b)
PLS_Toolbox Version 8.9 (22771)
Parallel Computing Toolbox Version 6.13 (R2018b)
Signal Processing Toolbox Version 8.1 (R2018b)
SimBiology Version 5.8.1 (R2018b)
Spreadsheet Link Version 3.4 (R2018b)
Statistics and Machine Learning Toolbox Version 11.4 (R2018b)

Answers (1)

Nitin Kapgate
Nitin Kapgate on 14 Dec 2020
You are using an external toolbox called PLS_Toolbox that provides a function called "figbrowser". This toolbox adds the figbrowser to the figure menus automatically.
The "figbrowser" function from PLS toolbox is known to cause the error which you are encountering across the apps.
You can resolve the issue by permanently disabling the menu addition, as suggested in "NOTE" in the below document's "input(s)" section,




Community Treasure Hunt

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

Start Hunting!

Translated by