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 264356

Submitted on 20 Jun 2013 by andrea84

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))
ans =
   16.1200   13.1400   12.1700