octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #40751] cov(x, x) doesn't return the same resu


From: Julien Bect
Subject: [Octave-bug-tracker] [bug #40751] cov(x, x) doesn't return the same result as in Matlab
Date: Fri, 29 Nov 2013 16:56:23 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:25.0) Gecko/20100101 Firefox/25.0

URL:
  <http://savannah.gnu.org/bugs/?40751>

                 Summary: cov(x, x) doesn't return the same result as in
Matlab
                 Project: GNU Octave
            Submitted by: jbect
            Submitted on: ven. 29 nov. 2013 16:56:22 GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

In Octave 3.7.7+ I get:


>>  x = reshape ((1:16).^2, 4, 4); cov (x, x)
ans =

     43.000    109.667    176.333    243.000
    109.667    283.000    456.333    629.667
    176.333    456.333    736.333   1016.333
    243.000    629.667   1016.333   1403.000


In Matlab R2012a:


>> x = reshape ((1:16).^2, 4, 4); cov (x, x)

ans =

   1.0e+03 *

    6.9315    6.9315
    6.9315    6.9315






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40751>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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