Matlab incompatibility bug in ifft
Ben Abbott
bpabbott at mac.com
Mon Feb 25 12:43:44 CST 2008
On Monday, February 25, 2008, at 01:23PM, "Ryan Hinton" <iobass at email.com> wrote:
>
>Matlab supports an extra argument to the ifft command to force Hermitian
>symmetry in the argument and so produce a real output. This should make
>the IFFT calculation faster and save an abs() call at the end. (I am
>implementing fast convolution of real signals, so I know the result must
>be real also.)
>
>Octave example:
>ret = abs(ifft([1 + eps*1j;1 + eps*1j], [], 1));
>
>Matlab-supported shortcut:
>ret = ifft([1 + eps*1j;1 + eps*1j], [], 1, 'symmetric');
>
>This seems like a simple fix/enhancement, but I got lost in the code. I
>am happy to provide more information. Or I can try a fix if someone can
>help me figure out generally what needs to be done to which files. I'm
>familiar with m-code, but not with all the conventions and internal data
>types of Octave's implementation.
>
>Thanks!
>
I believe what is needed is "real" not "abs".
Ben
More information about the Bug-octave
mailing list