This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = 3;
b = 4;
c = 5;
y_correct = 2.4;
assert(isequal(triangle_height(a, b, c), y_correct));
|
2 | Pass |
a = 1;
b = 2;
c = 3;
y_correct = NaN;
assert(isequaln(triangle_height(a, b, c), y_correct));
|
3 | Pass |
a = 0;
b = 1;
c = 1;
y_correct = NaN;
assert(isequaln(triangle_height(a, b, c), y_correct));
|
4 | Pass |
a = -3;
b = -4;
c = -5;
y_correct = NaN;
assert(isequaln(triangle_height(a, b, c), y_correct));
|
Make the vector [1 2 3 4 5 6 7 8 9 10]
35554 Solvers
Is my wife right? Now with even more wrong husband
1241 Solvers
462 Solvers
171 Solvers
Is this is a Tic Tac Toe X Win?
438 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!