Cody

Solution 2142081

Submitted on 27 Feb 2020 by karthik raj
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 2]; y = [2;3]; z_correct = 8; assert(isequal(in_prod(x,y),z_correct))

n1 = 1 2 n2 = 2 1 y = 2 3 arr = 2 6 arr = 8 z = 8

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

n1 = 1 1 n2 = 1 1 arr = -500 arr = -500 z = -500

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

n1 = 1 3 n2 = 2 1 z = "Have you checked the inner dimensions?"

Suggested Problems

More from this Author13