MATLAB Answers

Is it posiible to hide a source code?

3 views (last 30 days)
Hello,
what is the best way to hide source code of Matlab. Indeed, I want to give a code to users to execute it without being able to access it.
Thnak you !

  0 Comments

Sign in to comment.

Accepted Answer

Bruno Luong
Bruno Luong on 18 Sep 2020
pcode myfun

  6 Comments

Show 3 older comments
kamel ettaieb
kamel ettaieb on 18 Sep 2020
Thank you,
Juste How I can add an expiration date and time to my pcode file?
Rik
Rik on 18 Sep 2020
If you are willing to rely on the system time you can use now to retrieve the current date and compare it to an expiration date. If you don't trust the user, then you should host your own server that returns a time. Don't use the publicly available options, as you don't control whether they allow API access and might go down without warning.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!