I have two signals X : [250x1] double and Y : [250x1] double,
I want to calculate the co-variance matrix, by the deffinition.
The answer should be C : [250x250] double. However by C = cov(X,Y),
the answer is C : [2x2] double.
What is the problem?
I want to calculate (X-mean(X))T * C^-1 * (Y-mean(Y)),
which faces problem with a C : [2x2] double.
(X-mean(X))T*C^-1*(Y-mean(Y)), soCshould be [250*250] for it to work.cov(x,y)returns the conariance matrix ofxandyaccording to MATLAB help.