Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 257420

Submitted on 6 Jun 2013 by J.R.! Menzinger

Correct

29Size
Leading solution size is 12.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
%%
x = 1;
y = 4*pi()/3;
z = 4*pi();
[a,b]=sphere(x);
assert(isequal(a,y)&isequal(b,z))
varargout =
    [4.188790204786391]    [12.566370614359172]
2
Pass
 
%%
x = 4;
y = 256*pi()/3;
z = 64*pi();
[a,b]=sphere(x);
assert(isequal(a,y)&isequal(b,z))
varargout =
    [2.680825731063290e+02]    [2.010619298297468e+02]