Cody

Problem 279. collision

Solution 2278487

Submitted on 13 May 2020
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   Fail
vm=[60 2; -30 4]; velo_correct=0; assert(isequal(colli(vm),velo_correct))

Unrecognized function or variable 'v'. Error in colli (line 2) velo=v*m; Error in Test1 (line 3) assert(isequal(colli(vm),velo_correct))

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

Unrecognized function or variable 'v'. Error in colli (line 2) velo=v*m; Error in Test2 (line 3) assert(isequal(colli(vm),velo_correct))

Suggested Problems

More from this Author100

Community Treasure Hunt

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

Start Hunting!