Cody

Problem 47113. Distance Travelled by Vehicle

Solution 3467523

Submitted on 29 Oct 2020 by Mehmet OZC
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
t = 1; y_correct = 12.5; assert(isequal(d_in_t(t),y_correct))

dist = 12.5000

2   Pass
t = 5; y_correct = 112.5; assert(isequal(d_in_t(t),y_correct))

dist = 112.5000

3   Pass
t = 10; y_correct = 350; assert(isequal(d_in_t(t),y_correct))

dist = 350

Suggested Problems

Community Treasure Hunt

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

Start Hunting!