Cody

Solution 1825208

Submitted on 24 May 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 2 3 4 5]; y = [1 2 3 4 5]; ele_mult_vec = [1 4 9 16 25]; assert(isequal(your_fcn_name(x,y),ele_mult_vec))

Undefined function or variable 'Y'. Error in your_fcn_name (line 2) ele_mult_vec =x.*Y Error in Test1 (line 4) assert(isequal(your_fcn_name(x,y),ele_mult_vec))

2   Fail
x = ones(1,10); y = ones(1,10); ele_mult_vec = ones(1,10); assert(isequal(your_fcn_name(x,y),ele_mult_vec))

Undefined function or variable 'Y'. Error in your_fcn_name (line 2) ele_mult_vec =x.*Y Error in Test2 (line 4) assert(isequal(your_fcn_name(x,y),ele_mult_vec))

3   Fail
x = ones(1,10); y = 10:10:100; ele_mult_vec = 10:10:100; assert(isequal(your_fcn_name(x,y),ele_mult_vec))

Undefined function or variable 'Y'. Error in your_fcn_name (line 2) ele_mult_vec =x.*Y Error in Test3 (line 4) assert(isequal(your_fcn_name(x,y),ele_mult_vec))

4   Fail
x = 10:10:100; y = 0.1*ones(1,10); ele_mult_vec = 1:10; assert(isequal(your_fcn_name(x,y),ele_mult_vec))

Undefined function or variable 'Y'. Error in your_fcn_name (line 2) ele_mult_vec =x.*Y Error in Test4 (line 4) assert(isequal(your_fcn_name(x,y),ele_mult_vec))

5   Fail
x = 1:3; y = 4:6; ele_mult_vec = [4 10 18]; assert(isequal(your_fcn_name(x,y),ele_mult_vec))

Undefined function or variable 'Y'. Error in your_fcn_name (line 2) ele_mult_vec =x.*Y Error in Test5 (line 4) assert(isequal(your_fcn_name(x,y),ele_mult_vec))

6   Fail
x = mod(1:100,2); y = mod([2:100,1],2); ele_mult_vec = zeros(1,100); assert(isequal(your_fcn_name(x,y),ele_mult_vec))

Undefined function or variable 'Y'. Error in your_fcn_name (line 2) ele_mult_vec =x.*Y Error in Test6 (line 4) assert(isequal(your_fcn_name(x,y),ele_mult_vec))