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)
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)