Thanks by advance Cédrick FAURY
Hi Cédrick,
scipy.signal.impulse assumes that the state matrix A is diagonalizable,
so it does not give a correct result when A is defective. I would call
that a bug. :)
The attached file contains the function impulse_response() that uses a
different method to compute the impulse response. If run as a script,
the code at the bottom of the file plots impulse responses computed by
impulse_response() and by scipy.signal.impulse() for your example, and
for two other values of the leading coefficient of your denominator.
Warren
> Thanks by advance
>
> Cédrick FAURY
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> SciPy-User mailing list
> SciPy...@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
Cédrick
Yes, it uses lsim2, with the input U all zeros, and with the initial
condition set to the B matrix (plus the optional X0, if given).
Warren