Appdesigner: Remove Simulink dependency
古いコメントを表示
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 件のコメント
Adam Danz
2025 年 4 月 22 日
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
2025 年 4 月 23 日
採用された回答
その他の回答 (3 件)
Christopher
2024 年 8 月 17 日
1 投票
Does anyone have a solution to removing the Simulink dependency? It cannot be manually removed due to the grayed out App Designer code.
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à.
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.
カテゴリ
ヘルプ センター および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
