checklicense.m

来自「全面系统地给出鲁棒设计的源程序及运算实例」· M 代码 · 共 9 行

M
9
字号
% Verify products or error out
OP = license('test','optimization_toolbox');
ST = license('test','statistics_toolbox');
SL = license('test','simulink');

if ~sum([OP ST SL])
    error('rrdesign:LicenseError',...
        'A license is not available for Simulink, Optimization Toolbox, or Statistics Toolbox.  You need a license for all three products to run this demo.  To request a trial license go to:  http://www.mathworks.com/products/optimization/tryit.html')
end  

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?