Cody

Solution 488564

Submitted on 20 Aug 2014 by Abdullah Caliskan
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   Pass
%% x = 1; y = 1; z = 1; v_correct = 1; assert(isequal(computeVolume(x,y,z),v_correct));

x = 1 x = 1 x = 1

2   Pass
%% x = 3; y = 4.5; z = 2; v_correct = 27; assert(isequal(computeVolume(x,y,z),v_correct));

x = 3 x = 13.5000 x = 27

3   Pass
%% v_correct = 1; assert(isequal(computeVolume(),1));

4   Pass
%% v_correct = 1; assert(isequal(computeVolume([],[],[]),1));

varargin = [1] [] [] x = 1 varargin = [1] [1] [] x = 1 varargin = [1] [1] [1] x = 1

5   Pass
%% y = 2; v_correct = 2 assert(isequal(computeVolume([],y),v_correct));

v_correct = 2 varargin = [1] [2] x = 1 x = 2

6   Pass
%% x = 9.2; y = []; v_correct = 9.2; assert(isequal(computeVolume(x,y),v_correct));

x = 9.2000 varargin = [9.2000] [1] x = 9.2000

Suggested Problems

More from this Author1