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: Rik
Subject: [Octave-bug-tracker] [bug #40751] cov(x, x) doesn't return the same result as in Matlab
Date: Sun, 01 Dec 2013 06:51:28 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0

Follow-up Comment #1, bug #40751 (project octave):

According to Matlab's documentation, cov (x,y) is equivalent to


cov ([x(:), y(:)]


and in Octave doing 


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

   6.9315e+03   6.9315e+03
   6.9315e+03   6.9315e+03


I don't know if this is a recent change in Matlab's behavior or not, but the
fix looks simple.  The m-file can just be changed to use the new definition.


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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