I have the matrix like this
Table1 = [A B ; C D ; E F] and the vector:
V = [a ; b ; c] How to get the multiplication of second column of matrix M to get the answer as below?
ans =[aB ; bD; cF] Currently I'm doing,
Table1; d=length(Table1(:,2)); for i = 1:d ans(i,:) = sum(Table1(i,2)) .* V'; end The only way I can think would be using loops but I couldn't get the answer as I wish. Could anyone help me?