electricpy.sim.step_response

electricpy.sim.step_response(system, npts=1000, dt=0.01, combine=True, xlim=False, title='Step Response', errtitle='Step Response Error', resplabel='Step Response', funclabel='Step Function', errlabel='Error', filename=None)[source]

Step Function Response Plotter Function.

Given a transfer function, plots the response against step input and plots the error for the function.

Parameters:
system : array_like

The Transfer Function; can be provided as the following: * 1 (instance of lti) * 2 (num, den) * 3 (zeros, poles, gain) * 4 (A, B, C, D)

npts : int, optional

Number of steps to calculate over; default is 1000.

dt : float, optional

Difference between each data point, default is 0.01.

combine : bool, optional

If combination of numerator and denominator is needed. This value should be set to “True” if the parts should be combined to show the complete system with feedback. default=True.

title : str, optional

Additional string to be added to plot titles; default=””

xlim : list, optional

Limit in x-axis for graph plot. Accepts tuple of: (xmin, xmax). default=False.

filename : bool, optional

Control argument to specify whether the plotted figures should be saved. default=False