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 403340

Submitted on 13 Feb 2014 by J-G van der Toorn

Correct

15Size
Leading solution size is 9.
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
 
%%
birthRateChina = [16.12, 15.95, 15.85, 12.96, 12.98, 13.14, 13.25, 13.45, 13.71, 14, 12.17, 12.29, 12.31];
birthRate5China_correct = [16.12, 13.14, 12.17];
assert(isequal(GetBirthRate5China(birthRateChina),birthRate5China_correct))