help-octave
[Top][All Lists]
Advanced

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

Re: cov(x,y) = matrix or number?


From: Jordi Gutiérrez Hermoso
Subject: Re: cov(x,y) = matrix or number?
Date: Sun, 11 Mar 2012 21:54:00 -0400

On 11 March 2012 21:41, Muhali <address@hidden> wrote:
> 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

You know what to do...

    
http://hg.savannah.gnu.org/hgweb/octave/file/05635e4c605a/scripts/statistics/base/cov.m#l60

- Jordi G. H.


reply via email to

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