Skip to content

Commit 5543fb6

Browse files
committed
fix matlab stepinfo
1 parent d3142ff commit 5543fb6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

control/matlab/timeresp.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def step(sys, T=None, X0=0., input=0, output=None, return_x=False):
2222
LTI system to simulate
2323
2424
T: array-like or number, optional
25-
Time vector, or simulation time duration if a number (time vector is
25+
Time vector, or simulation time duration if a number (time vector is
2626
autocomputed if not given)
2727
2828
X0: array-like or number, optional
@@ -67,7 +67,7 @@ def step(sys, T=None, X0=0., input=0, output=None, return_x=False):
6767

6868
return yout, T
6969

70-
def stepinfo(sys, T=None, SettlingTimeThreshold=0.02, RiseTimeLimits=(0.1,0.9)):
70+
def stepinfo(sys, T=None, SettlingTimeThreshold=0.02, RiseTimeLimits=(0.1, 0.9)):
7171
'''
7272
Step response characteristics (Rise time, Settling Time, Peak and others).
7373
@@ -77,7 +77,7 @@ def stepinfo(sys, T=None, SettlingTimeThreshold=0.02, RiseTimeLimits=(0.1,0.9)):
7777
LTI system to simulate
7878
7979
T: array-like or number, optional
80-
Time vector, or simulation time duration if a number (time vector is
80+
Time vector, or simulation time duration if a number (time vector is
8181
autocomputed if not given)
8282
8383
SettlingTimeThreshold: float value, optional
@@ -110,7 +110,7 @@ def stepinfo(sys, T=None, SettlingTimeThreshold=0.02, RiseTimeLimits=(0.1,0.9)):
110110
'''
111111
from ..timeresp import step_info
112112

113-
S = step_info(sys, T, SettlingTimeThreshold, RiseTimeLimits)
113+
S = step_info(sys, T, None, SettlingTimeThreshold, RiseTimeLimits)
114114

115115
return S
116116

@@ -130,9 +130,9 @@ def impulse(sys, T=None, X0=0., input=0, output=None, return_x=False):
130130
LTI system to simulate
131131
132132
T: array-like or number, optional
133-
Time vector, or simulation time duration if a number (time vector is
133+
Time vector, or simulation time duration if a number (time vector is
134134
autocomputed if not given)
135-
135+
136136
X0: array-like or number, optional
137137
Initial condition (default = 0)
138138
@@ -186,9 +186,9 @@ def initial(sys, T=None, X0=0., input=None, output=None, return_x=False):
186186
LTI system to simulate
187187
188188
T: array-like or number, optional
189-
Time vector, or simulation time duration if a number (time vector is
189+
Time vector, or simulation time duration if a number (time vector is
190190
autocomputed if not given)
191-
191+
192192
X0: array-like object or number, optional
193193
Initial condition (default = 0)
194194

0 commit comments

Comments
 (0)