[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Correlation with nan package
From: |
Alois Schlögl |
Subject: |
Re: Correlation with nan package |
Date: |
Mon, 25 Jun 2018 13:58:51 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
corrcoef expects column vectors. So any of the following commands might
fix the problem for you:
corrcoef(a',b')
corrcoef(a(:),b(:))
Cheers,
Alois
On 2018-06-24 15:50, shivax wrote:
> hi,
> i try to study correlation
>
> i've the vector A and B
>
> a.txt <http://octave.1599824.n4.nabble.com/file/t372898/a.txt>
>
> b.txt <http://octave.1599824.n4.nabble.com/file/t372898/b.txt>
>
> i use corrcoef of package nan
>
>>> pkg load naan
>>> corrcoef(a,b)
> i get this error:
>
>>> corrcoef(a,b)
> error: out of memory or dimension too large for Octave's index type
> error: called from
> corrcoef at line 221 column 28
>
>
>
>
>
>
>
> --
> Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
>
>