lør, 16 08 2008 kl. 10:37 +0300, skrev nit_ar:
> I have tried using upfirdn which is part of the signal processing
> toolbox and it seems that it doesnt use the imaginary part of the input
> vector.
>
> i.e.
> upfirdn(rand(1,100)+i*rand(1,100),ones(1,10),1,2) produce a real output
> and upfirdn(i*rand(1,100),ones(1,10),1,2) produce a zeros output
>
> Is this a bug ?
I don't use this function, but I assume that this is indeed a bug. I'm
guessing that the function should do something like this:
if (iscomplex (input))
output = complex (upfirdn (real (input)), upfirdn (imag (input)));
endif
Would such a change make the function behave as you would expect?
Anyway, since I don't use the 'signal' package I'd rather not make too
many changes in it. Could you possibly provide a patch for this problem?
Thanks,
Søren
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev