matrix - Cross Correlating each pair column of matrices in matlab -
I have a problem when I want to address cross matrix two matrix in matlab. The code looks like this:
Load a.dat load b.dat x1 = a (:, m) x2 = b (:,, m) m = 1: 3; M = 1: 3; X = xcrorr (x1, x2); Both A and B are (1500 x 3) matrix, I want to correlate each column, and want to get value in 3 columns, i.e. same as data
load a.dat load b.dat m = 1: 3 x1 = a ( :, M); X2 = b (:, m); X (:, m) = xcorr (x1, x2); End
which you can reduce:
load a.dat load b.dat m = 1: 3x (:, m) = Xcorr (a (:, m), b (:, m)); End
Comments
Post a Comment