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

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

[Octave-bug-tracker] [bug #64395] corr cannot handle row vectors


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #64395] corr cannot handle row vectors
Date: Sun, 9 Jul 2023 10:53:53 -0400 (EDT)

Follow-up Comment #2, bug #64395 (project octave):

note that while the error is obviously a problem, the 'good' output noted in
comment #1 reflects the old behavior of cov/corr.  the change referenced below
updated those functions to be matlab compatible, and the correct (just checked
with v2023a) output should be:


>> a = [1,2,3]
a =
     1     2     3
>> b = a
b =
     1     2     3
>> corr(a,b)
ans =
   NaN   NaN   NaN
   NaN   NaN   NaN
   NaN   NaN   NaN
>> a = [1,2,3]'
a =
     1
     2
     3
>> b = a
b =
     1
     2
     3
>> corr(a,b)
ans =
    1.0000


will add explicit BISTS, see what needs to be done in cov where i suspect the
problem lives, and see if it's a quick fix.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64395>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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