In: Mechanical Engineering
Compute and plot the unit-impulse response of the following model.
10ÿ + 3ẏ + 7y = f(t)
Consider the equation
10ÿ + 3ẏ + 7y = f(t).
The objective is to solve the unit impulse response for amplitude variation by transferring to state response using ‘tf’ command and implement unit impulse using ‘impulse’ command.
Mat-lab code for required problem is provided below.
Save this program as ‘required problem’.
% Plot the unit-impulse response of the following model
clc; clear;
tic;
sys = tf(1,[10,3,7]);
impulse(sys);
toc;
The output of the code ‘Required problem’ in the figure window is shown below.
It is found that after 25 seconds, the amplitude variation is reduced to close to zero.
Here elapsed time is 15.746443 seconds.
Here elapsed time is 15.746443 seconds