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

조회 수: 10 (최근 30일)
Suleman Jalal
Suleman Jalal 2019년 6월 15일
답변: the cyclist 2019년 6월 15일
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,

답변 (1개)

the cyclist
the cyclist 2019년 6월 15일
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.

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by