开发者

determine whether matlab license is server- or user-based

开发者 https://www.devze.com 2022-12-30 09:26 出处:网络
I\'ve noticed that there are many different flavors of MATLAB available. Some licenses require constant contact with the licensing server, and if disconnec开发者_StackOverflow社区ted the client will s

I've noticed that there are many different flavors of MATLAB available. Some licenses require constant contact with the licensing server, and if disconnec开发者_StackOverflow社区ted 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?


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;


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消