離散形式の伝達関数

filtあるいはtfが使える
www.mathworks.com

clear; close all; clc;
num = [0 0 1];
den = [1 1 1/2];
H1 = tf(num,den,0.1)
H2 = filt(num,den,0.1)

bode(H1);
figure;
bode(H2);
H1 =
 
        1
  -------------
  z^2 + z + 0.5
 
Sample time: 1 seconds
Discrete-time transfer function.


H2 =
 
         z^-2
  -------------------
  1 + z^-1 + 0.5 z^-2
 
Sample time: unspecified
Discrete-time transfer function.

f:id:seinzumtode:20200908141052p:plain