Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
Berlin = [52.5200, 13.4050];
New_York = [40.7128, 74.0059];
London = [51.5074, 0.1278];
d1 = P_distance_km(Berlin, New_York);
d2 = P_distance_km(Berlin, London);
d3 = P_distance_km(London, New_York);
assert(isequal(round(d1),4811))
assert(isequal(round(d2),916))
assert(isequal(round(d3),5820))
d =
4.7440e+03
d =
1.4655e+03
d =
6.1709e+03
|
Find the longest sequence of 1's in a binary sequence.
3370 Solvers
5833 Solvers
Find relatively common elements in matrix rows
865 Solvers
1800 Solvers
Sum of diagonal of a square matrix
1327 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!