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