MatLab Assignment
MatLab Assignment
CONTROL ENGINEERING
(McE-42077)
MATLAB
Assignment – III
The differential equation for the above Mass-Spring system can then be written as
follows:
Solution:
Output
Output from the scope of the Simulink block diagram
Solution
For B = 4,
For B = 8,
For B = 12,
For B = 25,
Exercise 3: System response from the stored energy with zero input
Find the response of the above system when there is no input for t ≥ 0, but when the
initial value of the displacement x (0) is zero and the initial velocity v (0) is 1
m/s.
Solution
Output
For B = 12,
For B = 25,
Exercise 4: Cruise System
As we know in the cruise system, the spring force Fs (x) = 0 which means that K = 0
Equation (2) becomes
Or
Find the velocity response of the above system by constructing a Simulink block
diagram and calling the block diagram from Matlab m-file. Use M=750, B=30 and a
constant force Fa = 300. Plot the response of the system such that it runs for 125
seconds.
Solution
Input Code
Output
♦♦♦♦♦