Cody

Solution 2180625

Submitted on 29 Mar 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 2]; y = [2;3]; z_correct = 8; assert(isequal(in_prod(x,y),z_correct))

Error in solution: Line: 2 Column: 13 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

2   Fail
x = -5; y = 100; z_correct = -500; assert(isequal(in_prod(x,y),z_correct))

Error in solution: Line: 2 Column: 13 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

3   Fail
x = [1 2 3]; y = [2;3]; assert(isStringScalar(in_prod(x,y)))

Error in solution: Line: 2 Column: 13 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.