Install Python Control

Purpose

Install Python-Control, a control system design library for python.

environment

Ubuntu14.04(x64) orUbuntu16.04(x64)

Install

Install with the following command.

sudo apt-get install python-pip
sudo apt-get install gfortran
sudo apt-get install libblas-dev libatlas-dev liblapack-dev
pip install control
pip install slycot

Operation check

Draw a bode plot

emacs test.py chmod +x test.py ./test.py

test.py

#!/usr/bin/env python
from control.matlab import *
from matplotlib import pyplot as plt
    
def main():
  num = [0, 0, 3] 
  den = [2, 1, 3]
  sys = tf(num, den) 
  bode(sys)    
  plt.show()

if __name__ == "__main__":
  main()

Screenshot from 2017-05-24 01-08-37.png

reference

python-control. user manual http://python-control.sourceforge.net/manual/

Recommended Posts

Install Python Control
install python
Install Python locally
CentOS8 --Install --Python3
Install python on WSL
How to install Python
Install Python on Pidora.
Install Scrapy on python3
Install Python on Mac
How to install python
Install Python 3 on Mac
Install python from source
Install Python3.4 on CentOS 6.6
Install Python Jupyter lab
Install python external library
Install python (pyenv, pyenv-virtualenv)
Install Voluptuous with Python 2.5
Install python on windows
Python control syntax (memories)
Python PyTorch install tips
Install Python 2.7.3 on CentOS 5.4
Install python with pyenv
Install Python 3.3 on Ubuntu 12.04
Install Python 3.4 on Mac
Install Python 3.6 on Docker
Install Python (for Windows)
[2020.8 latest] How to install Python
How to install Python [Windows]
Install Python 3.8 on RHEL 8 (AppStream)
Install watchdog on Windows + Python 3.3
Install Python and Flask (Windows 10)
[Python tutorial] Control structure tool
Python
Install pygame on python3.4 on mac
Windows10: Install python dlib library
Install Python 3.8 on CentOS 7 (SCL)
Install external libraries with Python
Install multiple versions of Python
Install Python 3.7 and Django 3.0 (CentOS)
Instrument control using Python [pyvisa]
Python --Install MySQLDB on EC2
[ev3dev × Python] Single motor control
Install pyenv from Homebrew, install Python from pyenv
Install Python 3.8 on CentOS 8 (AppStream)
Install pyenv on Raspberry Pi and version control Python
[Python] [Chainer] [Windows] Install Chainer on Windows
Python install in 2 lines @Windows
Install dlib for Python (Windows)
Python control syntax, functions (Python learning memo ②)
How to install python using anaconda
Virtual Environment Version Control Summary Python
[ev3dev × Python] Control of multiple motors
Install Python Pillow on Amazon Linux
Install Python 3.8 on Ubuntu 18.04 (OS standard)
Install Python 2.7.9 and Python 3.4.x with pip.
Install Cheminformatics Tool RDKit for Python
I can't install python3 with pyenv-vertualenv
HomeBrew can't install Python (at Mavericks)
Install Python from source with Ansible
Install Python 3.8 on Ubuntu 20.04 (OS standard)
Install python2.7 on windows 32bit environment