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

non-intuitive Time-Domain Simulation functions behavior #239

Closed
Assignees
murrayrm
Labels
Milestone
@hungpham2511

Description

@hungpham2511

Hi, I notice that the simulation functions:step_response,impulse_response, for discrete time systems is not very intuitive, and is also inconsistent with matlab's behavior (I sort of have the habit of checking matlab documentation for a python-control function if there are suprises).

Consider this snippet

importcontrolascoimportnumpyasnpA1=co.tf([1], [1,6,5])A1=co.c2d(A1,0.5)T,y=co.step_response(A1,np.arange(0,5,0.2))

we would expectT to be the time instances that correspond to values iny (matlab behavior), but it turns out not the case. I gotT.shape = (25,) whiley.shape=(1, 10). The same behavior can be observed for other time-domain functions for discrete-time systems (continuous-time systems are alright).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp