Hi, I have data A with 1000×100 and data B with 1000×50 and I want to calculate the correlation coefficient for each row. Currently I am calculating the coefficient in this way:
for i=1:50 for j=1:100 result(j,i)=corr2(A(:,j),B(:,i)) endend
Because processing lots of data, I wonder, if there is a faster way to do this?
Best Answer