Cody

Solution 1834929

Submitted on 2 Jun 2019
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
m = 20; v = 25 y_correct = 6250; assert(isequal(kinetic_energy(m,v),y_correct))

Error in solution Line: 3 Column: 8 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

2   Fail
m = 1; v = 4; y_correct = 8; assert(isequal(kinetic_energy(m,v),y_correct))

Error in solution Line: 3 Column: 8 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

3   Fail
m = 6; v = 9; y_correct = 243; assert(isequal(kinetic_energy(m,v),y_correct))

Error in solution Line: 3 Column: 8 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

Suggested Problems

More from this Author8