Cody

Problem 2972. Sum of the Multiplication of Vectors

Solution 581319

Submitted on 13 Feb 2015 by Gergely Patay
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 = [9 2 0 4]; y = [3 9 5 8]; z_correct = 77; assert(isequal(sum_of_multiplication(x, y),z_correct))

ans = 77