Cody

Problem 45553. SatCom #4: Satellite Orbit Altitude

Solution 2459135

Submitted on 2 Jun 2020 by Stephen
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
p = 86164.0905; y_correct = 35793; OrbitAltitude(p)-y_correct assert(abs(OrbitAltitude(p)-y_correct)<0.5)

ans = 0.2469

2   Pass
p = 92.5*60; y_correct = 404.2002; OrbitAltitude(p)-y_correct assert(abs(OrbitAltitude(p)-y_correct)<0.05)

ans = -2.1210e-05

3   Pass
p = 34123; y_correct = 16367; OrbitAltitude(p)-y_correct assert(abs(OrbitAltitude(p)-y_correct)<0.5)

ans = 0.3151

4   Pass
s=importdata('OrbitAltitude.m'); y_correct=false; assert(isequal(sum(contains(s,'regexp')),y_correct))

Suggested Problems

More from this Author6

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!