How can I create a “trial version” of Matlab GUI

My goal is to create a graphical interface and then use deploytool to make an exe file from it. Since I do not want the user to be able to use it forever, I want to make it a trial version, which means that it will only work for a certain amount of time.

I thought that I might have somehow connected to the clock and date of the user's computer, and using the code for a time limit, but I found some problems in this logic.

Any ideas how to do this?

+4
source share
1 answer

Using a computer clock seems like a reasonable way. Of course, the user than prevents this by changing the clock, but this is likely to create enough inconvenience that they are likely to pay a reasonable price for the software.

Simply put, inside the OpeningFcn your GUI

 expiryDate = '2012-12-31'; if now > datenum(expiryDate) h = errordlg('please upgrade to a full license'); uiwait(h) return %# or throw an error end 
+3
source

Source: https://habr.com/ru/post/1444469/


All Articles