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 461244

Submitted on 24 Jun 2014 at 11:20 by Ziko

Correct

29Size
Leading solution size is 21.
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
 
%%
M = pi/2;
e = 0;
assert(isequal(round(kepler(M, e)*1e5)/1e5, 1.5708))
ans =
    1.5708
2
Pass
 
%%
M = pi/2;
e = 0.8;
assert(isequal(round(kepler(M, e)*1e5)/1e5, 2.21193))
ans =
    2.2119
3
Pass
 
%%
M = pi/3;
e = 0.1;
assert(isequal(round(kepler(M, e)*1e5)/1e5, 1.13798))
ans =
    1.1380
4
Pass
 
%%
M = 0.1;
e = 0.2;
assert(isequal(round(kepler(M, e)*1e5)/1e5, 0.12492))
ans =
    0.1249