Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 201684

Submitted on 7 Feb 2013

Incorrect

31Size
Leading solution size is 22.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Fail
 
%%
y = ieee_lm(1940,1965);
y_correct = 2005;
assert(isequal(y,y_correct))
Error: License checkout failed.
License Manager Error -5
Cannot find a license for Optimization_Toolbox.
Troubleshoot this issue by visiting:
<a href="http://www.mathworks.com/support/lme/R2012b/5">http://www.mathworks.com/support/lme/R2012b/5</a>
Diagnostic Information:
Feature: Optimization_Toolbox
License path: 13501@10.206.97.41:13501@10.10.207.33:/tmp/matlabpref/.matlab/R2012b_licenses:/opt/mlsedu/matlab/R2012b/licenses/license.dat:/opt/mlsedu/matlab/R2012b/licenses
Licensing error: -5,0.
2
Fail
 
%%
y=ieee_lm(1990,2035);
y_correct=2063;
assert(isequal(y,y_correct))
Error: License checkout failed.
License Manager Error -5
Cannot find a license for Optimization_Toolbox.
Troubleshoot this issue by visiting:
<a href="http://www.mathworks.com/support/lme/R2012b/5">http://www.mathworks.com/support/lme/R2012b/5</a>
Diagnostic Information:
Feature: Optimization_Toolbox
License path: 13501@10.206.97.41:13501@10.10.207.33:/tmp/matlabpref/.matlab/R2012b_licenses:/opt/mlsedu/matlab/R2012b/licenses/license.dat:/opt/mlsedu/matlab/R2012b/licenses
Licensing error: -5,0.
3
Fail
 
%%
y=ieee_lm(1980,2018);
y_correct=2049;
assert(isequal(y,y_correct))
Error: License checkout failed.
License Manager Error -5
Cannot find a license for Optimization_Toolbox.
Troubleshoot this issue by visiting:
<a href="http://www.mathworks.com/support/lme/R2012b/5">http://www.mathworks.com/support/lme/R2012b/5</a>
Diagnostic Information:
Feature: Optimization_Toolbox
License path: 13501@10.206.97.41:13501@10.10.207.33:/tmp/matlabpref/.matlab/R2012b_licenses:/opt/mlsedu/matlab/R2012b/licenses/license.dat:/opt/mlsedu/matlab/R2012b/licenses
Licensing error: -5,0.