Hi, I'm trying to construct a matrix in the following manner:
A(iter1,iter2) = sum((V(:,iter1)*V(:,iter2)').*X,[1 2]);
Is there a way to do this without for-loops? I'm sure there must be a way that I haven't been able to think of!