eykanal
eykanal

Reputation: 27047

determine whether matlab license is server- or user-based

I've noticed that there are many different flavors of MATLAB available. Some licenses require constant contact with the licensing server, and if disconnected the client will show some message like "unable to contact licensing server, will quit if connection not re-established in X minutes." Others are stand-alone installs, without such limitations. My question is, is there any way to tell which MATLAB license type I have installed from the command line?

Upvotes: 4

Views: 4459

Answers (2)

mtrw
mtrw

Reputation: 35098

Matlab has a function called LICENSE that returns information on which toolboxes etc. are available. I'm not sure if it tells you the level of detail you're looking for. Note that this runs from the Matlab command line, not the shell command line. From your question I wasn't quite sure which you were looking for.

Upvotes: 0

Jonas
Jonas

Reputation: 74940

You can check whether you have a file called network.lic in the $matlabroot/licenses folder. If yes, you're most likely running a network installation.

hasNetworkLicense =  exist(fullfile(matlabroot,'licenses','network.lic'),'file') == 2;

Upvotes: 3

Related Questions