Appdesigner: Remove Simulink dependency
Mostrar comentarios más antiguos
Hi everybody,
I have accidentaly added a Simulink component to my app and now I cannot compile it anymore.
I have the MATLAB compiler but not the Simulink compiler, to overcome the problem I have removed the simulink component but the dependency is still there, hence the appdesigner does not allow me to compile the app.
Is there any trick that I can use to fix this problem?
Best regards,
Giulio
2 comentarios
Adam Danz
el 22 de Abr. de 2025
This issues has been addressed and will be fixed in a future release. In the meantime, the recommended workaround is explained by Ranjani's answer in this thread: https://www.mathworks.com/matlabcentral/answers/2176452-why-can-t-i-remove-reference-to-simulink-in-app#answer_1564037
Giulio Giovannetti
el 23 de Abr. de 2025
Respuesta aceptada
Más respuestas (3)
Christopher
el 17 de Ag. de 2024
1 voto
Does anyone have a solution to removing the Simulink dependency? It cannot be manually removed due to the grayed out App Designer code.
1 comentario
Giulio Giovannetti
el 21 de Ag. de 2024
I just had the same problem. My simple solution: the .mlapp file is nothing more than a zip file. You can rename it to .zip, unzip it and:
- Edit the matlab/document.xml file (it contains the code part of the app) and remove the unwanted simulink code.
- Open the appdesigner/appModel.mat file, remove the simulink field and save it.
Finally zip everything back up again and rename the .zip file to .mlapp.
Voilà.
1 comentario
Giulio Giovannetti
el 1 de Oct. de 2025
To remove the Simulink dependency from your app and allow it to compile successfully using the MATLAB Compiler, you can try the following steps:
1.Clean Up Unused Functions and Blocks:
- Make sure that you remove any unused functions or blocks from your app that might still be referencing Simulink components.
2. Check Dependencies in AppDesigner:
- Open your app in AppDesigner and go to the "Code View" tab.
- Manually inspect the code to ensure there are no references to Simulink components.
3. Update Compiler Options:
- Check the compiler options in the MATLAB Compiler to ensure that it is not trying to include Simulink dependencies.
4. Rebuild the App:
- Try rebuilding your app after making sure that all references to Simulink components are removed.
2 comentarios
Giulio Giovannetti
el 8 de Ag. de 2024
Natan
el 21 de Mzo. de 2025
Same problem for me.
Categorías
Más información sobre Develop Apps Using App Designer en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
