In: Mechanical Engineering
Compute and plot the unit-step response of the following model.
10ÿ + 6ẏ + 2y = f + 7ḟ
Consider the equation
10ÿ + 6ẏ + 2y = f + 3ḟ
The objective is to solve the unit step 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-step response of the following model
clc; clear;
tic;
sys = tf([3,1],[10,6,2]);
step(sys);
toc;
The output of the code ‘Required problem’ in the figure window is shown below.
It is found that after 15 seconds, the amplitude reaches to a fixed value 0.5.
Here elapsed time is 0.961200 seconds.
Here elapsed time is 0.961200 seconds.