- Set breakpoint in ‘FileReader.m’ where MAT-file is loaded.
- Open app in App Designer.
- When paused, query figure for any components with 'CreateFcn' and set the CreateFcn on those components back to [] using the following command: get(fig, '-not', 'CreateFcn', [])
- Delete any components with no DesignTimeProperties using the following command:delete(findobj(fig, '-not', '-property', 'DesignTimeProperties'))
- Continue and save app from App Designer.
- Reopen the app to verify app opens fine.
App Designer error: "unable to add component. Not enough input arguments"
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 6 de En. de 2023
Respondida: MathWorks Support Team
el 31 de En. de 2023
I created a new blank App in App Designer. When I drag the Axes component onto the UI, after a few seconds, the following error pops up:
unable to add component
matlab.ui.control.UIAxes. Component creation failed with error:
Not enough input arguments.
In the code view, there is also a missing ‘CodeName’ property on ‘UIAxes’. How do I resolve this error?
Respuesta aceptada
MathWorks Support Team
el 6 de En. de 2023
The issue is related to missing ‘DesignTimeProperties’ on a component, which causes the code to have components with no name.
Please check if you have a ‘DefaultAxesCreateFcn’ or ‘DefaultFigureCreateFcn’ on groot. Sometimes these are set in the "startup.m" file.
As a workaround, please follow the following steps:
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!