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

조회 수: 8 (최근 30일)
Andreas Humbert
Andreas Humbert 2022년 8월 30일
답변: David Leffingwell 2023년 6월 12일
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.

답변 (2개)

Fangjun Jiang
Fangjun Jiang 2022년 8월 30일
make a p code.
doc pcode
  댓글 수: 1
Walter Roberson
Walter Roberson 2022년 8월 30일
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.

댓글을 달려면 로그인하십시오.


David Leffingwell
David Leffingwell 2023년 6월 12일
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.

카테고리

Help CenterFile Exchange에서 Create System Objects에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by