Cody

Solution 2093993

Submitted on 15 Jan 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
x = 1; y=2; z=3 y_correct = 6; assert(isequal(your_fcn_name(x,y,z),y_correct))

z = 3

Error using prod Invalid data type. First argument must be numeric or logical. Error in your_fcn_name (line 2) y = prod(varargin) Error in Test1 (line 5) assert(isequal(your_fcn_name(x,y,z),y_correct))

2   Fail
x = 0; y=0; z=0; y_correct = 0; assert(isequal(your_fcn_name(x,y,z),y_correct))

Error using prod Invalid data type. First argument must be numeric or logical. Error in your_fcn_name (line 2) y = prod(varargin) Error in Test2 (line 5) assert(isequal(your_fcn_name(x,y,z),y_correct))

Suggested Problems

More from this Author2