How to import raw app source code text to mlapp file

15 views (last 30 days)
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

Answers (1)

Sanjana
Sanjana on 7 Jun 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!

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!