Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Declaring a transfer-function mit zpk and plotting time responses#1061

Unanswered
MEnzmann asked this question inQ&A
Discussion options

Hi all!

I am little puzzled about the declaration of transfer-functions with control.zpk. The step-responses / impulse-responses of a transfer-function declared with control.zpk seem to unstable, although the poles are in the left-half plane and a bode plot does not show unstable poles. Am I missing something in the following MME?

Help would be appreciated! TIA!

_import control as ct
import control.matlab as ml
import matplotlib.pyplot as pl

Declare stable system as zpk

Gzp = ct.zpk([-5],[-1,-10], gain=4)
print(Gzp)

Declare same system as tf

Gtf = ct.tf([4,20], [1,11, 10])
print(Gtf)

Both systems share the same poles and zeros, the difference of both systems is 0.

Yet: the Gzp system is instable in simulations while Gtf is stable (as expected)

[Tzp, Yzp] = ct.impulse_response(Gzp)
pl.plot(Tzp, Yzp)
pl.show()
[Ttf, Ytf] = ct.impulse_response(Gtf)
pl.plot(Ttf, Ytf)
pl.show()__

You must be logged in to vote

Replies: 1 comment

Comment options

This is a bug. Created issue#1062 to track.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@MEnzmann@murrayrm

[8]ページ先頭

©2009-2025 Movatter.jp