Cody

Problem 2311. Vector Magnitude Calculator

Solution 2961268

Submitted on 18 Sep 2020 by Benjamin
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
x = 5; y = 12; mm = 13; assert(isequal(vector_magnitude(x, y),mm))

2   Pass
x = 3; y = 4; mm = 5; assert(isequal(vector_magnitude(x, y),mm))

3   Pass
x = 12; y = 35; mm = 37; assert(isequal(vector_magnitude(x, y),mm))

Suggested Problems

Community Treasure Hunt

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

Start Hunting!