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: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #64395] corr cannot handle row vectors
Date: Sat, 8 Jul 2023 16:38:43 -0400 (EDT)

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

This is due to:

changeset:   31918:e67b7b85670b
user:        Nicholas R. Jankowski <jankowski.nicholas@gmail.com>
date:        Wed Mar 22 13:33:46 2023 -0400
summary:     cov.m: Overhaul function for matlab compatibility (bug #50583).


Good:

octave:1> a=[1,2,3]; b = a; corr(a,b)
ans = 1
octave:2> version -hgid
ans = 655e757c7522
octave:3> 


Bad:
octave:1> a=[1,2,3]; b = a; corr(a,b)
error: c(3,_): out of bound 1 (dimensions are 1x1)
error: called from
    corr at line 86 column 7
octave:2> version -hgid
ans = e67b7b85670b
octave:3> 
-verbatim-

Not sure if the fix should happen in corr.m or in cov.m 
(https://savannah.gnu.org/bugs/?50583)

Dmitri.
-- 





    _______________________________________________________

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]