12
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PythonControlをインストールする

Last updated at Posted at 2017-05-23

###目的
pythonの制御系設計ライブラリPython-Controlをインストールする。

###環境
Ubuntu14.04(x64) orUbuntu16.04(x64)

###Install

以下のコマンドでインストールする。

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

###動作確認
ボード線図を書く

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

###参考

python-control.ユーザーマニュアル
http://python-control.sourceforge.net/manual/

12
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?