ons, 25 08 2010 kl. 18:57 +0100, skrev Carnë Draug:
> 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?

Sorry about the ridiculously late reply.

This change does indeed seem to be compatible with Matlab, so I've made
it.

Thanks
Søren


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to