Impulse Response and Transfer Function (MATLAB/Simulink Simulation)

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ม.ค. 2025

ความคิดเห็น • 1

  • @WonYYang
    @WonYYang  2 หลายเดือนก่อน

    th-cam.com/video/a-g3Kh6zZU4/w-d-xo.html for Impulse Response and Transfer Function (MATLAB/Simulink Simulation)
    th-cam.com/video/xsW0snx3rkM/w-d-xo.html for Matched Filter, Correlation, and Convolution (MATLAB/Simulink Simulation)
    The related files can be downloaded at kr.mathworks.com/matlabcentral/fileexchange/174315-impulse-response-and-transfer-function-with-matlab-simulink.
    %SS_xferfcn.m
    clear, clf
    syms s
    Gs=1/(s^2+2*s+2); % Transfer function (1.3.1a)
    w=2*pi; Us=w/(s^2+w^2); % Transformed input
    Ys=Gs*Us; % Transformed output
    y=ilaplace(Ys) % y(t)=Inverse Laplace transform of Y(s)
    pretty(y)
    t=0:0.01:10; % Time range 0~10[s]
    yt=eval(y); % y(t) for the time range
    plot(t,yt)