help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cov(x,y) = matrix or number?


From: Muhali
Subject: cov(x,y) = matrix or number?
Date: Sun, 11 Mar 2012 18:41:11 -0700 (PDT)

I just noticed that octave gives

O> X = [1 2; 1 3; 2 5] ;
O> cov(X(:,1), X(:,2))
ans =  0.833

while matlab returns a matrix

M> cov(X(:,1), X(:,2))

ans =

    0.3333    0.8333
    0.8333    2.3333


Should this not be compatible?


--
View this message in context: 
http://octave.1599824.n4.nabble.com/cov-x-y-matrix-or-number-tp4465087p4465087.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]