Borrar filtros
Borrar filtros

How to import raw app source code text to mlapp file

8 visualizaciones (últimos 30 días)
Conner Awald
Conner Awald el 21 de Nov. de 2022
Respondida: Sanjana el 7 de Jun. de 2023
I'm trying to use the matlab script given in this paper. It's a GUI program that can perform power beaming calculations and optimizations. It includes an app as the main user interface into the program and the paper provides all of the source code in an appendix. I can get the .m files to copy over just fine but I'm having trouble with the .mlapp file given on page 1 of Appendix 1. How can I take this raw source code and have matlab turn it into an app, or at least, interpret it as the source code of an app? I tried copy and pasting the source code into a regular .m file and then attempted to open it with the app editor but that didn't work. Also, pasting it into a file with the extension .mlapp throws an error when the app editor tries to open it. Thanks

Respuestas (1)

Sanjana
Sanjana el 7 de Jun. de 2023
Hi,
I understand that you are facing difficulty in executing the code in a “.mlapp” file.
The file is a MATLAB “App Designer” file. To execute the code in the file, You can open “App Designer” in MATLAB and go to the code view,then paste the code there, and then execute it.
Please refer to the following link for further information regarding “App designer”,
Hope this helps!

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!

Translated by