matlabでの伝達関数の定義法
matlabでの伝達関数の定義は単純で、例えば次のような伝達関数
\begin{align}
G(s)=\dfrac{1}{s^{2}+2s+3}
\end{align}
であれば
Np = [0, 1] Dp = [1, 2, 3] P = tf(Np, Dp)
とすればいい。
matlabのLisenceを所持していない場合、Python_Controlパッケージを用いることでほぼ同様に取り扱うことができる。
Python_Controlがインストールされている環境で
from control.matlab import * Np = [0, 1] Dp = [1, 2, 3] P = tf(Np, Dp) print('P(s)=', P)
とすれば同様の結果を得られる。