Cody

Solution 2067617

Submitted on 23 Dec 2019 by Asif Newaz
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
vm=[60 2; -30 4]; velo_correct=0; assert(isequal(colli(vm),velo_correct))

a = 120 -120 b = 0 c = 6 velo = 0

2   Pass
vm=[60 2; -30 4; 100 2]; velo_correct=25; assert(isequal(colli(vm),velo_correct))

a = 120 -120 200 b = 200 c = 8 velo = 25