Is it possbile to protect the code of a matlab live script?

11 visualizaciones (últimos 30 días)
Andreas Humbert
Andreas Humbert el 30 de Ag. de 2022
Respondida: David Leffingwell el 12 de Jun. de 2023
I wrote a matlab live script and want to share the script with protected code. The code shouldn't be visible in the protected version.
Is there a possibility to protect the live script?
Thank you in advance.

Respuestas (2)

Fangjun Jiang
Fangjun Jiang el 30 de Ag. de 2022
make a p code.
doc pcode
  1 comentario
Walter Roberson
Walter Roberson el 30 de Ag. de 2022
The documentation for pcode() specifically indicates that it does not support mlx. The LiveScript implementation to be hidden would have to be converted to .m first -- but .m (or .p) invoked from within LiveScript act differently than LiveScript -- and there would be no support for aspects such as controls.

Iniciar sesión para comentar.


David Leffingwell
David Leffingwell el 12 de Jun. de 2023
If you have access to the MATLAB Compiler, it will work for Live Script files (MLX).
See also Security Considerations to Protect Your Source Code for a general discussion of the IP Protection topic.

Categorías

Más información sobre Create System Objects en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by