Problem 43065. Energy of an object

Solution 1150339

Submitted on 30 Mar 2017 by H M Dipu Kabir
  • Size: 12
  • This is the leading solution.
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
m=1; h=10; v=2; y_correct = 100; assert(isequal(te(m,h,v),y_correct))

ans = []

2   Pass
m=10; h=10; v=2; y_correct = 1000; assert(isequal(te(m,h,v),y_correct))

ans = []

3   Pass
m=1; h=10; v=20; y_correct = 298; assert(isequal(te(m,h,v),y_correct))

ans = []

Suggested Problems

More from this Author9

Community Treasure Hunt

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

Start Hunting!