Cody

Solution 2053487

Submitted on 10 Dec 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
x = 1; y = 4*pi()/3; z = 4*pi(); [a,b] = sphere_calc(x); assert(isequal(a,y)&isequal(b,z))

Undefined function 'x' for input arguments of type 'double'. Error in sphere_calc (line 2) y=[x(5) x(6) x(7) x(2)]; Error in Test1 (line 4) [a,b] = sphere_calc(x);

2   Fail
x = 4; y = 256*pi()/3; z = 64*pi(); [a,b] = sphere_calc(x); assert(isequal(a,y)&isequal(b,z))

Undefined function 'x' for input arguments of type 'double'. Error in sphere_calc (line 2) y=[x(5) x(6) x(7) x(2)]; Error in Test2 (line 4) [a,b] = sphere_calc(x);