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 203134

Submitted on 12 Feb 2013 by @bmtran

Correct

32Size
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
Pass
 
%%
y = ieee_lm(1940,1965);
y_correct = 2005;
assert(isequal(y,y_correct))
[Warning: FOR loop index is too large. Truncating to 9223372036854775807.]
[> In ieee_lm at 2
  In verifyCode>evaluateCode at 227
  In verifyCode at 40
  In fevalJSON at 14]
2
Pass
 
%%
y=ieee_lm(1990,2035);
y_correct=2063;
assert(isequal(y,y_correct))
[Warning: FOR loop index is too large. Truncating to 9223372036854775807.]
[> In ieee_lm at 2
  In verifyCode>evaluateCode at 227
  In verifyCode at 40
  In fevalJSON at 14]
3
Pass
 
%%
y=ieee_lm(1980,2018);
y_correct=2049;
assert(isequal(y,y_correct))
[Warning: FOR loop index is too large. Truncating to 9223372036854775807.]
[> In ieee_lm at 2
  In verifyCode>evaluateCode at 227
  In verifyCode at 40
  In fevalJSON at 14]