matrix-vector multiplication
Q = reshape(1:10,5,2) % creates a matrix for testing
v = [1;2] % creates a vector for testing
Q*v % the product of a matrix and a vector
sum(Q*v) % the sum of that vector