How can I generate p-code for my '.mlapp' file created in App Designer?

12 Ansichten (letzte 30 Tage)
How can I generate p-code for my '.mlapp' file created in App Designer?

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 28 Feb. 2019
Starting in MATLAB R2018b, you can use the MATLAB Compiler to deploy a web-app and achieve the obfuscation of your application like p-code would.
More information is available on this here:
If you actually wish to p-code the underlying MATLAB code for your application, please follow the steps below:
MATLAB R2018b and later:
1. Open the app in App Designer
2. Click the bottom of the 'Save' button to open a sub-menu
3. Select "Export to .m file"
4. Run the "pcode" function on the resulting M file.
Prior to MATLAB R2018b:
1. Open the app in App Designer
2. Switch to Code view
3. Copy the code into a new M file and save it.
4. Run the "pcode" function on the resulting M file.
  1 Kommentar
David Leffingwell
David Leffingwell am 12 Jun. 2023
Also, the MATLAB Compiler can automatically create P-code for you when packaging your M files.
See "mcc -j" or compiler.build ObfuscateArchive.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Produkte


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by