Info

This question is closed. Reopen it to edit or answer.

Question about matlab code for trial control

1 view (last 30 days)
laoya
laoya on 12 Aug 2013
Closed: MATLAB Answer Bot on 20 Aug 2021
Dear all,
Do you have any experience to write a matlab protection program to have a trial control, for example, to let my program have a 30-day trial?
I only know that pcode can compile the .m code to .p files to protect the code, furthermore, I also need to protect the program by setting a 30-day trial, any suggestion?
Thanks, Tang Laoya

Answers (1)

Dustin
Dustin on 12 Aug 2013
Hi Tang,
I am not sure how save our program should be but you could use the date-function in MATLAB.
str = date returns a string containing the date in dd-mmm-yyyy format
At the first start of our program you could save a "start_date" to compare it later with the "current_date".
It´s just an quick idea.
Regards Dustin
  1 Comment
laoya
laoya on 12 Aug 2013
Hi Regards,
Thank you very much for your kindly reply. I also thought of this idea, but I know that user can modify computer's current time so that he can continue to use the program:(
Thanks,
Tang Laoya

This question is closed.

Community Treasure Hunt

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

Start Hunting!