Info

此问题已关闭。 请重新打开它进行编辑或回答。

Question about matlab code for trial control

1 次查看(过去 30 天)
laoya
laoya 2013-8-12
关闭: MATLAB Answer Bot 2021-8-20
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

回答(1 个)

Dustin
Dustin 2013-8-12
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 个评论
laoya
laoya 2013-8-12
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

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by