MATLAB Compatibility Module
MATLAB compatibility subpackage.
This subpackage contains a number of functions that emulate some ofthe functionality of MATLAB. The intent of these functions is toprovide a simple interface to the python control systems library(python-control) for people who are familiar with the MATLAB ControlSystems Toolbox (tm).
Warning
This module is not closely maintained and somefunctionality in the main python-control package may notbe be available via the MATLAB compatibility module.
Creating Linear Models
| Create a transfer function system. |
| Create a state space system. |
| Construct a frequency response data (FRD) model. |
| Create a transfer function from zeros, poles, gain. |
Utility Functions and Conversions
| Convert a magnitude to decibels (dB). |
| Convert a gain in decibels (dB) to a magnitude. |
| Convert a continuous-time system to discrete time by sampling. |
| Transform a state space system to a transfer function. |
| Transform a transfer function to a state space system. |
| Return transfer function data objects for a system. |
System Interconnections
| Series connection of I/O systems. |
| Parallel connection of I/O systems. |
| Feedback interconnection between two I/O systems. |
| Return the negative of a system. |
| Index-based interconnection of an LTI system. |
| Group LTI models by appending their inputs and outputs. |
System Gain and Dynamics
| Compute the gain of the system in steady state. |
| Compute system poles. |
| Compute system zeros. |
| Compute system's natural frequencies, damping ratios, and poles. |
| Plot a pole/zero map for a linear system. |
Time-Domain Analysis
| Step response of a linear system. |
| Impulse response of a linear system. |
| Initial condition response of a linear system. |
| Simulate the output of a linear system. |
| Step response characteristics (rise time, settling time, etc). |
Frequency-Domain Analysis
| Bode plot of the frequency response. |
| Nyquist plot of the frequency response. |
| Gain and phase margins and associated crossover frequencies. |
| Nichols plot for a system. |
| Plot Nichols chart grid. |
| Frequency response of an LTI system. |
| Evaluate transfer function of LTI system at complex frequency. |
Compensator Design
| Root locus diagram. |
| Collection of plots inspired by MATLAB's sisotool. |
| Place closed loop eigenvalues. |
| Linear quadratic regulator design. |
| Discrete-time linear quadratic regulator design. |
| Continuous-time linear quadratic estimator (Kalman filter). |
| Discrete-time linear quadratic estimator (Kalman filter). |
State-space (SS) Models
| Create a stable random state space object. |
| Create a stable, discrete-time, random state space system. |
| Controllability matrix. |
| Observability matrix. |
| Gramian (controllability or observability). |
Model Simplification
| Eliminate uncontrollable or unobservable states. |
| Calculate the Hankel singular values. |
| Balanced reduced order model of system of a given order. |
| Model reduction by input, output, or state elimination. |
| Calculate ERA model based on impulse-response data. |
| Calculate Markov parameters [D CB CAB ...] from data. |
Matrix Equation Solvers and Linear Algebra
| Solves the continuous-time Lyapunov equation. |
| Solves the discrete-time Lyapunov equation. |
| Solves the continuous-time algebraic Riccati equation. |
| Solves the discrete-time algebraic Riccati equation. |
Additional Functions
| Plot response of "Gang of 4" transfer functions. |
| Unwrap a phase angle to give a continuous curve. |
Functions Imported from Other Packages
| Return evenly spaced numbers over a specified interval. |
| Return numbers spaced evenly on a log scale. |
| State-space representation to zero-pole-gain representation. |
| Return zero, pole, gain (z, p, k) representation from a numerator, denominator representation of a linear filter. |
| Zero-pole-gain representation to state-space representation |
| Return polynomial transfer function representation from zeros and poles |