On 25 August 2010 16:36, Marco Atzeri <marco_atz...@yahoo.it> wrote: > I guess that to replicate Matlab > > you need to call corr2(a(:),b(:)) > > as for cov > http://octave.sourceforge.net/nan/function/cov.html > > Marco
Can't this be adjusted in the function? By looking at the code of corr2, swapping cov (I, J) / (std2(I)*std2(J)); by cov (I(:), J(:)) / (std2(I)*std2(J)); would suffice to have compatibility. Or would this break something? Carnë Draug ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev