MATLAB Answers

0

How can I add an expiration date and time to my script or P-code file?

Asked by Suleman Jalal on 15 Jun 2019
Latest activity Answered by the cyclist
on 15 Jun 2019
Hello,
I have a MATLAB script code which I have it converted into a P-code file, using "%pcode*.m". I wanted to share my P-code file with a friend with an expiration date. May I please get help on how to add an expiration date and time to my script?
Thanks,

  0 Comments

Sign in to comment.

Tags

Products


Release

R2019a

1 Answer

Answer by the cyclist
on 15 Jun 2019

One way that you could do it would be to put a line in your *.m file code that checks the date [using, for example, the now() function], and returns with with no result (or an error message) if it is past the expiration date.
This could presumably be foiled if they manipulate their system clock, though.

  0 Comments

Sign in to comment.