作成、更新 2000-03-16

G(s)=1/(0.01s+1)のステップ応答と周波数応答
 
 C:\app\matx>matx

        MaTX Interpreter (matx)
        Windows95/NT(Visual C++) version 5.0.5
        last modified Fri Jan 28 18:28:19 JST 2000
        Copyright (C) 1989-2000, Masanobu Koga

        Send bugs and comments to matx@matx.org
        Type 'quit' to exit, 'help' for functions, 'demo' for demonstration.

 MaTX (1) s=Polynomial("s");   //sを変数宣言
 MaTX (2) t=[0:0.001:0.1];     //tを0 - 0.1 まで 0.001刻みのベクトルにする
 MaTX (3) G=1/(1+0.01*s)       //G(s)の定義
         1
G = ------------
     0.01 s + 1
 MaTX (4) {y,x}=step_tfm([G],1,t);   //伝達関数をmatrix[G]としてstep応答を算出
 MaTX (5) mgplot(1,t,y)              //プロット(gnuplot)
 MaTX (6) mgplot(1,t,y)
 MaTX (7) mgplot_grid(1,1)
 MaTX (8) mgplot_xlabel(1,"time[sec]")
 MaTX (9) mgplot_ylabel(1,"respnse")
 MaTX (10) mgplot_title(1,"step response")
 MaTX (11) mgplot_text(1,"G(s)=1/(0.01s+1)",0.04,0.8)
image/gsstepres.png

MaTX (12) bode_plot_tfm([G]) //ボード線図

 

image/gsbode.png

Return