¿por qué tengo deshabilitada la función de Package al hacer una Standalone Application?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Estoy intentando crear una standalone application de una Matlab App. He definido el fichero mlapp, están seleccionados los ficheros correspondientes, pero la opción de Package está deshabilitada. He comprobado que tengo Matlab Compiler instalado.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1623393/image.png)
1 Kommentar
Manikanta Aditya
am 29 Feb. 2024
English translation:
Why is the Package function disabled when I make a Standalone Application?
I am trying to create a standalone application from a Matlab App. I have defined the mlapp file, the corresponding files are selected, but the Package option is disabled. I have checked that I have Matlab Compiler installed.
Antworten (2)
Manikanta Aditya
am 29 Feb. 2024
Hi Ainhoa,
I am answering your question in English.
The Package option is disabled when creating a standalone application because the Package function is not supported for standalone applications in MATLAB. The 'Package' function is used to create a MATLAB toolbox or an app installer, which is not necessary for standalone applications. To create a standalone application, you can use the MATLAB Compiler instead.
To create a standalone application from a MATLAB App using the MATLAB Compiler, you can follow these steps:
- Open your MATLAB App in the MATLAB App Designer.
- Make sure all the necessary files and dependencies are included in your MATLAB App project.
- Go to the "Apps" tab in the MATLAB App Designer and click on "Package App".
- In the "Package App" dialog, select the desired options for your standalone application, such as the output folder, the main file, and any additional files or dependencies.
- Click on "Package" to start the packaging process.
- Once the packaging process is complete, you will have a standalone application that can be distributed and run on machines without MATLAB installed.
Thanks!
0 Kommentare
Ainhoa Galarza
am 29 Feb. 2024
1 Kommentar
Manikanta Aditya
am 29 Feb. 2024
Hello, Good to hear that the Package option was enabled after re-trying the process.
Looks like the Simulink error you mentioned could be due to a compatibility issue or a missing toolbox:
- Check Compatibility: Ensure that your version of Simulink is compatible with the MATLAB Compiler you’re using.
- Check for Missing Toolboxes: Make sure you have all the necessary toolboxes installed and licensed for your application.
- Update Path: Ensure that the path to the Simulink model is correctly specified in your application.
Thank you!
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!