📄 checklicense.m
字号:
% 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -