Cody

Solution 2260861

Submitted on 7 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
I=5,H=4; y_correct = 3; assert(isequal(coneradius(I,H),y_correct))

I = 5

Error using ^ (line 51) Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar. To perform elementwise matrix powers, use '.^'. Error in coneradius (line 5) sqrt((I^2)-(H^2))=R; Error in Test1 (line 3) assert(isequal(coneradius(I,H),y_correct))

2   Fail
I=13,H=12; y_correct = 5; assert(isequal(coneradius(I,H),y_correct))

I = 13

Error using ^ (line 51) Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar. To perform elementwise matrix powers, use '.^'. Error in coneradius (line 5) sqrt((I^2)-(H^2))=R; Error in Test2 (line 3) assert(isequal(coneradius(I,H),y_correct))