From: Giovanni Ughi on
and, how is it possible to "time bomb" p-file?

thanks in advance
From: Andy on
"Giovanni Ughi" <giovanni.ughi(a)yahoo.it> wrote in message <i2s1mo$48o$1(a)fred.mathworks.com>...
> and, how is it possible to "time bomb" p-file?
>
> thanks in advance

Well, a simple solution:

function output = myFunction(varargin)

if now > datenum('2011-01-01') % this code stops working Jan 1, 2011
disp('Please renew your license');
return
end

% rest of function
end
From: Giovanni Ughi on
definitely easy!...

thanks a lot
From: Giovanni Ughi on
easy... thanks a lot!
From: Giovanni Ughi on
suggested solution seems to work well.

But, if I change the windows clock (system time) will this "crack" the time-bomb?

there is any solution robust to that?

thanks in advance