No BSD License  

Highlights from
calcDateLicenseExpiry

3.5

3.5 | 2 ratings Rate this file 0 Downloads (last 30 days) File Size: 916 Bytes File ID: #7086

calcDateLicenseExpiry

by Martyn Dorey

 

09 Mar 2005 (Updated 11 Mar 2005)

An effective way to put a time bar on your distributed files, so you can protect your intellectual c

| Watch this File

File Information
Description

The most common way to time bar your work is to compare todays date with a time bar.

However it is easy for a user to change the date on their machine to get round this. (You can do this on MATLAB for example).

This solution compares the license expiry date with the latest date that files were changed in a check directory[default: 'c:\windows'].
It's a pain to overide this.

This technique should help you protect your intellectual capital when you distribute your work to clients.

% dteEnd = datenum('30-Jun-2005','dd-mmm-yyyy');
% sclrExpire = calcDateLicenseExpiry(dteEnd);
% if sclrExpire>0,
% txtErr= 'Licence expired please contact xxx.yyyy@address.com';
% uiwait(msgbox(txtErr));
% error(txtErr);
% end

Don't know how to stop MATLAB models from being copied. Look forward to hearing your views.
Regards
Martyn

MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
11 Mar 2005 Arthur Mobile

Novel approach

17 Aug 2006 Angela jiang

??? DATENUM failed.
Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N)
to change the limit. Be aware that exceeding your available stack space can
crash MATLAB and/or your computer.

Please login to add a comment or rating.
Updates
11 Mar 2005

Rubbish spelling.

Tag Activity for this File
Tag Applied By Date/Time
license Martyn Dorey 22 Oct 2008 07:42:59
date Martyn Dorey 22 Oct 2008 07:42:59
protect Martyn Dorey 22 Oct 2008 07:42:59
code Martyn Dorey 22 Oct 2008 07:42:59
protection Martyn Dorey 22 Oct 2008 07:42:59
distribution of code Martyn Dorey 22 Oct 2008 07:42:59

Contact us at files@mathworks.com