Sorry if the question is confusing, but I will explain here. What I want to do is: Suppose we have a vector (or 1xN matrix) A = [a1 a2 a3 a4], and another B = [b1 b2 b3] I want C to be:
[a1*b1 a1*b2 a1*b3 a2*b1 a2*b2 a3*b3 a3*b1 a3*b2 a3*b3 a4*b1 a4*b2 a4*b3]
Is there a team that will do this in Matlab? I have already done this in a for loop, but given the number of times the loop is called, it will save a lot of execution time if I can write it without a for loop.
source share