Cody

Problem 2516. Element by element multiplication of two vectors

Solution 2246133

Submitted on 30 Apr 2020 by Yaroslav Br
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
A=[1 2 3]; B=[1 1 1]; y_correct=[1 2 3]; assert(isequal(ele_wise(A,B),y_correct));

ans = 1 2 3

2   Pass
A=[1 2 3]; B=[1 2 3]; y_correct=[1 4 9]; assert(isequal(ele_wise(A,B),y_correct));

ans = 1 4 9

3   Pass
A=[1 8]; B=[8 1]; y_correct=[8 8]; assert(isequal(ele_wise(A,B),y_correct));

ans = 8 8