From: <car...@us...> - 2012-08-27 01:53:24
|
Revision: 10921 http://octave.svn.sourceforge.net/octave/?rev=10921&view=rev Author: carandraug Date: 2012-08-27 01:53:16 +0000 (Mon, 27 Aug 2012) Log Message: ----------- xcorr2: fix bug on norm option when input is not double Modified Paths: -------------- trunk/octave-forge/main/signal/inst/xcorr2.m Modified: trunk/octave-forge/main/signal/inst/xcorr2.m =================================================================== --- trunk/octave-forge/main/signal/inst/xcorr2.m 2012-08-27 01:51:54 UTC (rev 10920) +++ trunk/octave-forge/main/signal/inst/xcorr2.m 2012-08-27 01:53:16 UTC (rev 10921) @@ -94,6 +94,10 @@ c = c/max(c(:))'; case {"norm"} + ## FIXME maybe these conversions for double can be removed when + ## https://savannah.gnu.org/bugs/?37199 gets fixed? + a = double (a); + b = double (b); a = conv2 (a.^2, ones (size (b))); b = dot (b(:), b(:)); c(:,:) = c(:,:) ./ sqrt (a(:,:) * b); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |