From 5543fb682d62a660066ad883c8ee7bdb0b2bbe26 Mon Sep 17 00:00:00 2001 From: bnavigator Date: Sat, 1 Aug 2020 15:51:14 +0200 Subject: [PATCH] fix matlab stepinfo --- control/matlab/timeresp.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/control/matlab/timeresp.py b/control/matlab/timeresp.py index b9d4004ca..1ba7b2a0a 100644 --- a/control/matlab/timeresp.py +++ b/control/matlab/timeresp.py @@ -22,7 +22,7 @@ def step(sys, T=None, X0=0., input=0, output=None, return_x=False): LTI system to simulate T: array-like or number, optional - Time vector, or simulation time duration if a number (time vector is + Time vector, or simulation time duration if a number (time vector is autocomputed if not given) X0: array-like or number, optional @@ -67,7 +67,7 @@ def step(sys, T=None, X0=0., input=0, output=None, return_x=False): return yout, T -def stepinfo(sys, T=None, SettlingTimeThreshold=0.02, RiseTimeLimits=(0.1,0.9)): +def stepinfo(sys, T=None, SettlingTimeThreshold=0.02, RiseTimeLimits=(0.1, 0.9)): ''' Step response characteristics (Rise time, Settling Time, Peak and others). @@ -77,7 +77,7 @@ def stepinfo(sys, T=None, SettlingTimeThreshold=0.02, RiseTimeLimits=(0.1,0.9)): LTI system to simulate T: array-like or number, optional - Time vector, or simulation time duration if a number (time vector is + Time vector, or simulation time duration if a number (time vector is autocomputed if not given) SettlingTimeThreshold: float value, optional @@ -110,7 +110,7 @@ def stepinfo(sys, T=None, SettlingTimeThreshold=0.02, RiseTimeLimits=(0.1,0.9)): ''' from ..timeresp import step_info - S = step_info(sys, T, SettlingTimeThreshold, RiseTimeLimits) + S = step_info(sys, T, None, SettlingTimeThreshold, RiseTimeLimits) return S @@ -130,9 +130,9 @@ def impulse(sys, T=None, X0=0., input=0, output=None, return_x=False): LTI system to simulate T: array-like or number, optional - Time vector, or simulation time duration if a number (time vector is + Time vector, or simulation time duration if a number (time vector is autocomputed if not given) - + X0: array-like or number, optional Initial condition (default = 0) @@ -186,9 +186,9 @@ def initial(sys, T=None, X0=0., input=None, output=None, return_x=False): LTI system to simulate T: array-like or number, optional - Time vector, or simulation time duration if a number (time vector is + Time vector, or simulation time duration if a number (time vector is autocomputed if not given) - + X0: array-like object or number, optional Initial condition (default = 0) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy